검사 관련 메소드명 수정

main
이범준 1 year ago
parent 4b9bd3ba0a
commit ce5fcad263

@ -17,7 +17,7 @@ public class CrdnQuery extends QueryRequest {
private static final long serialVersionUID = 1L;
private String grid;
private String inquireDataType;
private String inspectionDataType;
private String crdnId;
private String[] crdnIDs;
private String taskSeCd;
@ -40,12 +40,12 @@ public class CrdnQuery extends QueryRequest {
return self();
}
public String getInquireDataType() {
return ifEmpty(inquireDataType, () -> null);
public String getInspectionDataType() {
return ifEmpty(inspectionDataType, () -> null);
}
public <T extends CrdnQuery> T setInquireDataType(String inquireDataType) {
this.inquireDataType = inquireDataType;
public <T extends CrdnQuery> T setInspectionDataType(String inspectionDataType) {
this.inspectionDataType = inspectionDataType;
return self();
}

@ -29,7 +29,7 @@ public interface Crdn06Mapper extends AbstractMapper {
* @param req
* @return
*/
List<DataObject> selectPhotoInquireDataList(CrdnQuery setOrderBy);
List<DataObject> selectPhotoInspectionDataList(CrdnQuery setOrderBy);
/** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)}

@ -45,7 +45,7 @@ public class Crdn06Bean extends AbstractComponent {
case "fineReductionData":
return crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID"));
case "photo":
return crdn06Mapper.selectPhotoInquireDataList(req.setOrderBy("CRDN_ID"));
return crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("CRDN_ID"));
case "sameVehicleMain":
return crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO"));
case "sameVehicleSub":

@ -116,8 +116,8 @@ public class Crdn06Controller extends ApplicationController {
* "crdnTotal":
* }</code></pre>
*/
public ModelAndView getInquireDataList(CrdnQuery req) {
switch(req.getInquireDataType()) {
public ModelAndView getInspectionDataList(CrdnQuery req) {
switch(req.getInspectionDataType()) {
case "photo" -> req.setGrid("photo");
case "sameVehicleMain" -> req.setGrid("sameVehicleMain");
case "sameVehicleSub" -> req.setGrid("sameVehicleSub");

@ -39,20 +39,20 @@ public class TaskCrdn06Controller extends Crdn06Controller {
}
@RequestMapping(name="주정차과태료업무 검사자료 목록", value="/020/PVS/list.do")
public ModelAndView getPvsInquireDataList(CrdnQuery req) {
return getInquireDataList(req);
public ModelAndView getPvsInspectionDataList(CrdnQuery req) {
return getInspectionDataList(req);
}
@RequestMapping(name="전용차로과태료업무 검사자료 목록", value="/020/BPV/list.do")
public ModelAndView getBpvInquireDataList(CrdnQuery req) {
return getInquireDataList(req);
public ModelAndView getBpvInspectionDataList(CrdnQuery req) {
return getInspectionDataList(req);
}
@RequestMapping(name="장애인과태료업무 검사자료 목록", value="/020/DPV/list.do")
public ModelAndView getDpvInquireDataList(CrdnQuery req) {
return getInquireDataList(req);
public ModelAndView getDpvInspectionDataList(CrdnQuery req) {
return getInspectionDataList(req);
}
@RequestMapping(name="전기차과태료업무 검사자료 목록", value="/020/ECA/list.do")
public ModelAndView getEcaInquireDataList(CrdnQuery req) {
return getInquireDataList(req);
public ModelAndView getEcaInspectionDataList(CrdnQuery req) {
return getInspectionDataList(req);
}
/** .<br />

@ -232,8 +232,8 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
<include refid="selectCrackdown"/>
</select>
<select id="selectPhotoInquireDataList" parameterType="map" resultType="dataobject">
/* 단속사진 검사 자료 목록 조회(crdn06Mapper.selectPhotoInquireDataList) */
<select id="selectPhotoInspectionDataList" parameterType="map" resultType="dataobject">
/* 단속사진 검사 자료 목록 조회(crdn06Mapper.selectPhotoInspectionDataList) */
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->

@ -164,7 +164,41 @@
<th width="80">제외내역</th>
</tr>
<tr class="pvs bpv">
<th width="80">트래픽~~</th>
<th width="80">No.</th>
<th width="80">시군구명</th>
<th width="80">자료출처</th>
<th width="80">차량번호</th>
<th width="80">단속일시</th>
<th width="80">단속조</th>
<th width="80">단속원</th>
<th width="80">사진건수</th>
<th width="80">스티커번호</th>
<th width="80">처리상태</th>
<th width="80">서손사유</th>
<th width="80">차량구분</th>
<th width="80">차종</th>
<th width="80">차량명</th>
<th width="80">단속동</th>
<th width="80">단속장소</th>
<th width="80">단속원금</th>
<th width="80">경감금액</th>
<th width="80">잔액</th>
<th width="80">위반법규</th>
<th width="80">견인여부</th>
<th width="80">단속특별지역</th>
<th width="80">부과일자</th>
<th width="80">성명</th>
<th width="80">주민번호</th>
<th width="80">주소</th>
<th width="80">번지</th>
<th width="80">우편번호</th>
<th width="80">GPS-X</th>
<th width="80">GPS-Y</th>
<th width="80">단속특이사항</th>
<th width="80">자료입력일시</th>
<th width="80">특이사항</th>
<th width="80">등록사용자</th>
<th width="80">렌트등록자</th>
</tr>
</template>
<template id="crdnRow--${pageName}">
@ -186,7 +220,41 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{제외내역}</td>
</tr>
<tr class="pvs bpv">
<td width="80">트래픽~~</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{}</td>
</tr>
</template>
<template id="crdnNotFound--${pageName}" class="dpv eca">
@ -194,7 +262,7 @@
<td valign="top" colspan="15" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
</tr>
<tr class="pvs bpv">
<td valign="top" colspan="1" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
<td valign="top" colspan="35" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>

@ -10,8 +10,8 @@
<div>
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
<a href="#" class="btn btn-blue" id="btnPhotoInquire--${pageName}" title="단속사진 비교">단속사진 비교</a>
<a href="#" class="btn btn-blue" id="btnSameVehicleInquire--${pageName}" title="동일단속차량 검사">동일단속차량 검사</a>
<a href="#" class="btn btn-blue" id="btnPhotoInspection--${pageName}" title="단속사진 비교">단속사진 비교</a>
<a href="#" class="btn btn-blue" id="btnSameVehicleInspection--${pageName}" title="동일단속차량 검사">동일단속차량 검사</a>
<span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
</span>
@ -98,16 +98,28 @@
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<div class="col-6">
<input type="checkbox" name="" value="Y" /><label for="">동일장소만조회</label>
<input type="checkbox" name="" value="Y" /><label for="">미납만조회</label>
<input type="checkbox" name="" value="Y" /><label for="">서손자료제외</label>
</div>
</div>
<div class="row" id="searchByTaskArea--${pageName}">
</div>
</div>
</form>
<div class="photoInquireArea">
<template id="taskSearchOption--${pageName}">
<div class="col-6 pvs">
<input type="checkbox" name="exclude" value="Y" /><label for="exclude">2시간초과제외</label>(사진검사일때)
</div>
</template>
<div class="photoInspectionArea">
<span class="container-page-btn">
<div class="d-flex flex-row justify-content-between">
<label id="photoInquirePaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="photoInquirePaging--${pageName}" class="pagination pagination-primary">
<label id="photoInspectionPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="photoInspectionPaging--${pageName}" class="pagination pagination-primary">
</ul>
</div>
<span class="container-window-btn-right">
@ -115,11 +127,11 @@
</span>
</span>
</div>
<div class="card-datatable text-nowrap photoInquireArea">
<div id="photoInquire_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="photoInquire-responsive--${pageName}" class="table-responsive"
<div class="card-datatable text-nowrap photoInspectionArea">
<div id="photoInspection_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="photoInspection-responsive--${pageName}" class="table-responsive"
style="overflow-x: scroll;height:200px;overflow-y: scroll;">
<table id="photoInquire_Table_0--${pageName}"
<table id="photoInspection_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer">
<thead>
<tr>
@ -137,8 +149,8 @@
<th width="80px">자료출처</th>
</tr>
</thead>
<tbody id="photoInquireTbody--${pageName}"></tbody>
<template id="photoInquireRow--${pageName}">
<tbody id="photoInspectionTbody--${pageName}"></tbody>
<template id="photoInspectionRow--${pageName}">
<tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td>
@ -154,7 +166,7 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_INPT_SE_CD}</td>
</tr>
</template>
<template id="photoInquireNotFound--${pageName}">
<template id="photoInspectionNotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="12" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
@ -164,7 +176,7 @@
</div>
</div>
<div style="height:200px" class="photoInquireArea">
<div style="height:200px" class="photoInspectionArea">
선택자료
<table style="width: 100%;height: 150px;">
<colgroup>
@ -183,7 +195,7 @@
</tbody>
</table>
</div>
<div style="height:200px" class="photoInquireArea">
<div style="height:200px" class="photoInspectionArea">
비교자료(선택자료의 다음 자료가 보여집니다.)
<table style="width: 100%;height: 150px;">
<colgroup>
@ -203,11 +215,11 @@
</table>
</div>
<div class="sameVehicleInquireArea">
<div class="sameVehicleInspectionArea">
<span class="container-page-btn">
<div class="d-flex flex-row justify-content-between">
<label id="sameVehicleInquireMainPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="sameVehicleInquireMainPaging--${pageName}" class="pagination pagination-primary">
<label id="sameVehicleInspectionMainPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="sameVehicleInspectionMainPaging--${pageName}" class="pagination pagination-primary">
</ul>
</div>
<span class="container-window-btn-right">
@ -215,12 +227,12 @@
</span>
</span>
</div>
<div class="sameVehicleInquireArea">
<div class="sameVehicleInspectionArea">
<div class="card-datatable text-nowrap" style="display: inline-flex;">
<div id="sameVehicleInquireMain_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="sameVehicleInquireMain-responsive--${pageName}" class="table-responsive"
<div id="sameVehicleInspectionMain_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="sameVehicleInspectionMain-responsive--${pageName}" class="table-responsive"
style="overflow-x: scroll;height:400px;width:310px;overflow-y: scroll;">
<table id="sameVehicleInquireMain_Table_0--${pageName}"
<table id="sameVehicleInspectionMain_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer">
<thead>
<tr>
@ -229,15 +241,15 @@
<th>단속건수</th>
</tr>
</thead>
<tbody id="sameVehicleInquireMainTbody--${pageName}"></tbody>
<template id="sameVehicleInquireMainRow--${pageName}">
<tbody id="sameVehicleInspectionMainTbody--${pageName}"></tbody>
<template id="sameVehicleInspectionMainRow--${pageName}">
<tr data-key="{CRDN_ID_LIST}">
<td onclick="{onclick}" class="text-center">{VHRNO}</td>
<td onclick="{onclick}" class="text-center">{CRDN_STDG_NM}</td>
<td onclick="{onclick}" class="text-center">{CRDN_CNT}</td>
</tr>
</template>
<template id="sameVehicleInquireMainNotFound--${pageName}">
<template id="sameVehicleInspectionMainNotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="3" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
@ -248,10 +260,10 @@
</div>
<div class="card-datatable text-nowrap" style="display: inline-flex;margin-left:10px;">
<div id="sameVehicleInquireSub_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="sameVehicleInquireSub-responsive--${pageName}" class="table-responsive"
<div id="sameVehicleInspectionSub_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="sameVehicleInspectionSub-responsive--${pageName}" class="table-responsive"
style="overflow-x: scroll;height:400px;width:1000px;overflow-y: scroll;">
<table id="sameVehicleInquireSub_Table_0--${pageName}"
<table id="sameVehicleInspectionSub_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer">
<thead>
<tr>
@ -268,8 +280,8 @@
<th>주민번호(마스크)</th>
</tr>
</thead>
<tbody id="sameVehicleInquireSubTbody--${pageName}"></tbody>
<template id="sameVehicleInquireSubRow--${pageName}">
<tbody id="sameVehicleInspectionSubTbody--${pageName}"></tbody>
<template id="sameVehicleInspectionSubRow--${pageName}">
<tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_INPT_SE_CD}</td>
@ -284,7 +296,7 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center privacy-mask">{주민번호마스크}</td>
</tr>
</template>
<template id="sameVehicleInquireSubNotFound--${pageName}">
<template id="sameVehicleInspectionSubNotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="11" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
@ -304,9 +316,9 @@
<div class="content-backdrop fade"></div>
</div>
<script type="module" src="<c:url value='/resources/js/fims/crdn/inquire.js?${ver}'/>"></script>
<script type="module" src="<c:url value='/resources/js/fims/crdn/inspection.js?${ver}'/>"></script>
<script type="module">
import InquireControl from "<c:url value='/resources/js/fims/crdn/inquire.js?${ver}'/>";
import InspectionControl from "<c:url value='/resources/js/fims/crdn/inspection.js?${ver}'/>";
/**************************************************************************
* Global Variable
**************************************************************************/
@ -332,8 +344,8 @@ $(document).ready(function(){
}
//단속사진검사 datasetControl 인스턴스
$P.photoInquireControl = new DatasetControl({
prefix:"photoInquire", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
$P.photoInspectionControl = new DatasetControl({
prefix:"photoInspection", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true,
formats: {
CRDN_YMD_TM : datetimeFormat,
@ -344,27 +356,27 @@ $(document).ready(function(){
}
});
$P.photoInquireControl.onDatasetChange = obj => {
$P.renderInquireDataList("photoInquire");
$P.photoInspectionControl.onDatasetChange = obj => {
$P.renderInspectionDataList("photoInspection");
var prefix = obj.infoPrefix;
$("#photoInquirePaging--${pageName}").setPagingInfo({
list: $P.photoInquireControl.dataset,
prefix: "photoInquirePaging--${pageName}",
$("#photoInspectionPaging--${pageName}").setPagingInfo({
list: $P.photoInspectionControl.dataset,
prefix: "photoInspectionPaging--${pageName}",
start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], fetchSize: obj[prefix+"Fetch"],
func: "pageObject['${pageName}'].photoInquireControl.load({index})"
func: "pageObject['${pageName}'].photoInspectionControl.load({index})"
});
};
//동일차량검사 datasetControl 인스턴스
$P.sameVehicleControl = new InquireControl({
prefix:"sameVehicleInquireMain", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
$P.sameVehicleControl = new InspectionControl({
prefix:"sameVehicleInspectionMain", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID_LIST : "", dataGetter:obj => obj.crdnList,
formats: { CRDN_CNT : numberFormat }
},
{
prefix:"sameVehicleInquireSub", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
prefix:"sameVehicleInspectionSub", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList,
formats: {
CRDN_YMD_TM : datetimeFormat,
@ -375,12 +387,12 @@ $(document).ready(function(){
);
$P.sameVehicleControl.main.onDatasetChange = obj => {
$P.renderInquireDataList("sameVehicleInquireMain");
$P.renderInspectionDataList("sameVehicleInspectionMain");
var prefix = obj.infoPrefix;
$("#sameVehicleInquireMainPaging--${pageName}").setPagingInfo({
$("#sameVehicleInspectionMainPaging--${pageName}").setPagingInfo({
list: $P.sameVehicleControl.main.dataset,
prefix: "sameVehicleInquireMainPaging--${pageName}",
prefix: "sameVehicleInspectionMainPaging--${pageName}",
start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], fetchSize: obj[prefix+"Fetch"],
func: "pageObject['${pageName}'].sameVehicleControl.main.load({index})"
});
@ -389,7 +401,7 @@ $(document).ready(function(){
$P.sameVehicleControl.sub.onDatasetChange = obj => {
$P.renderInquireDataList("sameVehicleInquireSub");
$P.renderInspectionDataList("sameVehicleInspectionSub");
//총 건수만 표시
};
@ -397,114 +409,119 @@ $(document).ready(function(){
$P.fnReset = () => {
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());
$P.photoInquireControl.setData([]);
$P.photoInspectionControl.setData([]);
$P.sameVehicleControl.main.setData([]);
$P.sameVehicleControl.sub.setData([]);
};
$P.fnResetAndChangeBiz = taskSeCd => {
$P.fnReset();
$P.photoInquireControl.urls.load = wctx.url("/crdn/crdn06/020/"+ taskSeCd +"/list.do?inquireDataType=photo");
$P.photoInquireControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
$P.sameVehicleControl.main.urls.load = wctx.url("/crdn/crdn06/020/"+ taskSeCd +"/list.do?inquireDataType=sameVehicleMain");
$P.photoInspectionControl.urls.load = wctx.url("/crdn/crdn06/020/"+ taskSeCd +"/list.do?inspectionDataType=photo");
$P.photoInspectionControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
$P.sameVehicleControl.main.urls.load = wctx.url("/crdn/crdn06/020/"+ taskSeCd +"/list.do?inspectionDataType=sameVehicleMain");
$P.sameVehicleControl.main.urls.getInfo = "";
$P.sameVehicleControl.sub.urls.load = wctx.url("/crdn/crdn06/020/"+ taskSeCd +"/list.do?inquireDataType=sameVehicleSub");
$P.sameVehicleControl.sub.urls.load = wctx.url("/crdn/crdn06/020/"+ taskSeCd +"/list.do?inspectionDataType=sameVehicleSub");
$P.sameVehicleControl.sub.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
var cssForTask = taskSeCd.toLowerCase();
var searchOption = document.getElementById("taskSearchOption--${pageName}").content.querySelector("."+cssForTask)?.outerHTML;
if(!searchOption) searchOption = "";
$("#searchByTaskArea--${pageName}").html(searchOption);
}
$P.searchInquireList = () => {
$P.searchInspectionList = () => {
switch ($P.currentDisplay) {
case "photoInquire":
$P.photoInquireControl.query = $P.getParams();
$P.photoInquireControl.load(1);
case "photoInspection":
$P.photoInspectionControl.query = $P.getParams();
$P.photoInspectionControl.load(1);
break;
case "sameVehicleInquire":
case "sameVehicleInspection":
$P.sameVehicleControl.main.query = $P.getParams();
$P.sameVehicleControl.main.load(1);
break;
default: break;
}
}
$P.searchDetailInquireDataList = () => {
$P.searchDetailInspectionDataList = () => {
$P.sameVehicleControl.sub.query = { "crdnIDs" : $P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"].split(",") };
$P.sameVehicleControl.sub.query.taskSeCd = $P.sameVehicleControl.main.query.taskSeCd;
$P.sameVehicleControl.sub.load(0);
}
$P.scrollInquireDataList = () => {
$P.scrollInspectionDataList = () => {
switch ($P.currentDisplay) {
case "photoInquire":
$P.photoInquireControl.load($P.photoInquireControl.query.pageNum + 1);
case "photoInspection":
$P.photoInspectionControl.load($P.photoInspectionControl.query.pageNum + 1);
break;
case "sameVehicleInquire":
case "sameVehicleInspection":
$P.sameVehicleControl.main.load($P.sameVehicleControl.main.query.pageNum + 1);
break;
default: break;
}
}
$P.clickInquireDataList = (dataKey, gridType) => {
$P.clickInspectionDataList = (dataKey, gridType) => {
switch (gridType) {
case "photoInquire":
$P.photoInquireControl.setCurrent(dataKey);
$("#photoInquireTbody--${pageName}").setCurrentRow(dataKey);
case "photoInspection":
$P.photoInspectionControl.setCurrent(dataKey);
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
break;
case "sameVehicleInquireMain":
case "sameVehicleInspectionMain":
$P.sameVehicleControl.main.setCurrent(dataKey);
$("#sameVehicleInquireMainTbody--${pageName}").setCurrentRow(dataKey);
$P.searchDetailInquireDataList();
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey);
$P.searchDetailInspectionDataList();
break;
case "sameVehicleInquireSub":
case "sameVehicleInspectionSub":
$P.sameVehicleControl.sub.setCurrent(dataKey);
$("#sameVehicleInquireSubTbody--${pageName}").setCurrentRow(dataKey);
$("#sameVehicleInspectionSubTbody--${pageName}").setCurrentRow(dataKey);
break;
}
}
$P.dblclickInquireDataList = (dataKey, gridType) => {
$P.dblclickInspectionDataList = (dataKey, gridType) => {
switch (gridType) {
case "photoInquire":
$P.photoInquireControl.getInfo(dataKey);
case "photoInspection":
$P.photoInspectionControl.getInfo(dataKey);
break;
case "sameVehicleInquireSub":
case "sameVehicleInspectionSub":
$P.sameVehicleControl.sub.getInfo(dataKey);
break;
}
}
$P.renderInquireDataList = (renderDataType) => {
$P.renderInspectionDataList = (renderDataType) => {
switch (renderDataType) {
case "photoInquire":
var dataList = $P.photoInquireControl.dataset;
case "photoInspection":
var dataList = $P.photoInspectionControl.dataset;
var empty = dataList.empty;
var notFound = [document.getElementById("photoInquireNotFound--${pageName}").innerHTML]
var found = document.getElementById("photoInquireRow--${pageName}").innerHTML;
var notFound = [document.getElementById("photoInspectionNotFound--${pageName}").innerHTML]
var found = document.getElementById("photoInspectionRow--${pageName}").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInquireDataList('" + dataItem.getValue("CRDN_ID") + "','photoInquire');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInquireDataList('" + dataItem.getValue("CRDN_ID") + "','photoInquire');");
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
var trs = empty ? notFound : dataList.inStrings(found, replacer);
$("#photoInquireTbody--${pageName}").html(trs.join());
$("#photoInspectionTbody--${pageName}").html(trs.join());
break;
case "sameVehicleInquireMain":
case "sameVehicleInspectionMain":
var dataList = $P.sameVehicleControl.main.dataset;
var empty = dataList.empty;
var notFound = [document.getElementById("sameVehicleInquireMainNotFound--${pageName}").innerHTML];
var found = document.getElementById("sameVehicleInquireMainRow--${pageName}").innerHTML;
var notFound = [document.getElementById("sameVehicleInspectionMainNotFound--${pageName}").innerHTML];
var found = document.getElementById("sameVehicleInspectionMainRow--${pageName}").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInquireDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInquireMain');");
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
var trs = empty ? notFound : dataList.inStrings(found, replacer);
$("#sameVehicleInquireMainTbody--${pageName}").html(trs.join());
$("#sameVehicleInspectionMainTbody--${pageName}").html(trs.join());
break;
case "sameVehicleInquireSub":
case "sameVehicleInspectionSub":
var dataList = $P.sameVehicleControl.sub.dataset;
var empty = dataList.empty;
var notFound = [document.getElementById("sameVehicleInquireSubNotFound--${pageName}").innerHTML]
var found = document.getElementById("sameVehicleInquireSubRow--${pageName}").innerHTML;
var notFound = [document.getElementById("sameVehicleInspectionSubNotFound--${pageName}").innerHTML]
var found = document.getElementById("sameVehicleInspectionSubRow--${pageName}").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInquireDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInquireSub');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInquireDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInquireSub');");
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');");
var trs = empty ? notFound : dataList.inStrings(found, replacer);
$("#sameVehicleInquireSubTbody--${pageName}").html(trs.join());
$("#sameVehicleInspectionSubTbody--${pageName}").html(trs.join());
break;
default: break;
}
@ -520,42 +537,42 @@ $(document).ready(function(){
$P.fnResetAndChangeBiz(defaultBizValue);
//스크롤 이벤트 추가(사진검사)
$("#photoInquire-responsive--${pageName}").scroll(function(){
$("#photoInspection-responsive--${pageName}").scroll(function(){
var el = $(this);
if(el.scrollTop() == 0){ return; }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
$P.scrollInquireDataList();
$P.scrollInspectionDataList();
}
});
//스크롤 이벤트 추가(동일차량검사)
$("#sameVehicleInquireMain-responsive--${pageName}").scroll(function(){
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){
var el = $(this);
if(el.scrollTop() == 0){ return; }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
$P.scrollInquireDataList();
$P.scrollInspectionDataList();
}
});
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); //초기화버튼
$('#btnPhotoInquire--${pageName}').on('click', () => {
$(".photoInquireArea").show();
$(".sameVehicleInquireArea").hide();
$P.currentDisplay = "photoInquire";
$('#btnPhotoInspection--${pageName}').on('click', () => {
$(".photoInspectionArea").show();
$(".sameVehicleInspectionArea").hide();
$P.currentDisplay = "photoInspection";
});
$('#btnSameVehicleInquire--${pageName}').on('click', () => {
$(".sameVehicleInquireArea").show();
$(".photoInquireArea").hide();
$P.currentDisplay = "sameVehicleInquire";
$('#btnSameVehicleInspection--${pageName}').on('click', () => {
$(".sameVehicleInspectionArea").show();
$(".photoInspectionArea").hide();
$P.currentDisplay = "sameVehicleInspection";
});
$('#btnSearch--${pageName}').on('click', () => $P.searchInquireList()); //검색버튼
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$(".photoInquireArea").show();
$(".sameVehicleInquireArea").hide();
$P.currentDisplay = "photoInquire";
$(".photoInspectionArea").show();
$(".sameVehicleInspectionArea").hide();
$P.currentDisplay = "photoInspection";
});
</script>

@ -1,4 +1,4 @@
export default class InquireControl {
export default class InspectionControl {
constructor(mainConf, subConf) {
this.main = new DatasetControl(mainConf);
this.sub = new DatasetControl(subConf);
Loading…
Cancel
Save