|
|
|
@ -6,26 +6,26 @@
|
|
|
|
|
<div class="card wrapper-list">
|
|
|
|
|
|
|
|
|
|
<div class="container-page-btn">
|
|
|
|
|
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화">
|
|
|
|
|
<button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
|
|
|
|
|
초기화
|
|
|
|
|
</button>
|
|
|
|
|
<div class="w-100 d-flex justify-content-center">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<button type="button" id="btnPhotoInspection--${pageName}"
|
|
|
|
|
<button type="button" name="btnPhotoInspection"
|
|
|
|
|
class="btn btn-blue btn-outline-some" title="단속사진 비교">단속사진 비교</button>
|
|
|
|
|
<button type="button" id="btnSameVehicleInspection--${pageName}"
|
|
|
|
|
<button type="button" name="btnSameVehicleInspection"
|
|
|
|
|
class="btn btn-blue btn-outline-some" title="동일단속차량 검사">동일단속차량 검사</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" id="btnSearch--${pageName}"
|
|
|
|
|
<button type="button" name="btnSearch"
|
|
|
|
|
class="btn btn-search w-px-120" title="검색">검색</button>
|
|
|
|
|
<button type="button" id="btnExcel--${pageName}"
|
|
|
|
|
<button type="button" name="btnExcel"
|
|
|
|
|
class="btn btn-excel w-px-120" title="엑셀 저장">엑셀</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<form id="frmSearch--${pageName}" name="frmSearch">
|
|
|
|
|
<form name="frmSearch">
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
<div class="col-12">
|
|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCrdnYmdFrom--${pageName}">단속일자</label>
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end">단속일자</label>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
@ -108,7 +108,8 @@
|
|
|
|
|
<input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
|
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
|
<span class="flr">
|
|
|
|
|
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
|
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse"
|
|
|
|
|
data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
|
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
|
상세검색
|
|
|
|
|
</button>
|
|
|
|
@ -116,7 +117,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
|
|
|
|
<div name="searchDetail" class="container-search container-search-detail collapse">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnSttsCd--${pageName}">자료상태</label>
|
|
|
|
@ -157,7 +158,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<div id="gridbuttonArea--${pageName}" class="container-page-btn">
|
|
|
|
|
<div name="gridbuttonArea" class="container-page-btn">
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
<span id="photoInspectionPaging--${pageName}PagingInfo"
|
|
|
|
|
class="dataTables_info area-photoinspection" role="status" aria-live="polite"></span>
|
|
|
|
@ -178,7 +179,7 @@
|
|
|
|
|
<span slot="button">
|
|
|
|
|
<template class="pvs">
|
|
|
|
|
<slot>
|
|
|
|
|
<button id="btnOpenOverTime--${pageName}"
|
|
|
|
|
<button name="btnOpenOverTime"
|
|
|
|
|
class="btn btn-primary area-photoinspection"
|
|
|
|
|
title="2시간 초과 처리">2시간 초과 처리</button>
|
|
|
|
|
</slot>
|
|
|
|
@ -188,9 +189,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap area-photoinspection">
|
|
|
|
|
<div id="photoInspection_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="photoInspection-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-200">
|
|
|
|
|
<table id="photoInspection_Table_0--${pageName}"
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div name="photoInspection-responsive" class="table-responsive ox-scroll oy-scroll h-px-200">
|
|
|
|
|
<table name="photoInspection_Table_0"
|
|
|
|
|
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
|
|
|
|
@ -220,8 +221,8 @@
|
|
|
|
|
<th class="dummy-th"></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="photoInspectionTbody--${pageName}"></tbody>
|
|
|
|
|
<template id="photoInspectionRow--${pageName}">
|
|
|
|
|
<tbody name="photoInspectionTbody"></tbody>
|
|
|
|
|
<template name="photoInspectionRow">
|
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ROW_NUM}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
|
|
|
|
@ -240,7 +241,7 @@
|
|
|
|
|
<td class="dummy-td"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="photoInspectionNotFound--${pageName}">
|
|
|
|
|
<template name="photoInspectionNotFound">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
@ -269,11 +270,10 @@
|
|
|
|
|
<span class="area-samevehicleinspection">
|
|
|
|
|
<div class="d-flex justify-content-evenly min-w-px-1400">
|
|
|
|
|
<div class="card-datatable text-nowrap d-inline-flex">
|
|
|
|
|
<div id="sameVehicleInspectionMain_Table_0_wrapper--${pageName}"
|
|
|
|
|
class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="sameVehicleInspectionMain-responsive--${pageName}"
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div name="sameVehicleInspectionMain-responsive"
|
|
|
|
|
class="table-responsive ox-scroll oy-scroll h-px-400 w-px-350">
|
|
|
|
|
<table id="sameVehicleInspectionMain_Table_0--${pageName}"
|
|
|
|
|
<table name="sameVehicleInspectionMain_Table_0"
|
|
|
|
|
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
|
|
|
|
@ -287,8 +287,8 @@
|
|
|
|
|
<th class="dummy-th"></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="sameVehicleInspectionMainTbody--${pageName}"></tbody>
|
|
|
|
|
<template id="sameVehicleInspectionMainRow--${pageName}">
|
|
|
|
|
<tbody name="sameVehicleInspectionMainTbody"></tbody>
|
|
|
|
|
<template name="sameVehicleInspectionMainRow">
|
|
|
|
|
<tr data-key="{CRDN_ID_LIST}">
|
|
|
|
|
<td onclick="{onclick}" class="text-center">{VHRNO}</td>
|
|
|
|
|
<td onclick="{onclick}" class="text-center">{CRDN_STDG_NM}</td>
|
|
|
|
@ -296,7 +296,7 @@
|
|
|
|
|
<td class="dummy-td"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="sameVehicleInspectionMainNotFound--${pageName}">
|
|
|
|
|
<template name="sameVehicleInspectionMainNotFound">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<td valign="top" colspan="4" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
@ -309,10 +309,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap d-inline-flex ms-3">
|
|
|
|
|
<div id="sameVehicleInspectionSub_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="sameVehicleInspectionSub-responsive--${pageName}"
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div name="sameVehicleInspectionSub-responsive"
|
|
|
|
|
class="table-responsive ox-scroll oy-scroll h-px-400 w-px-1000">
|
|
|
|
|
<table id="sameVehicleInspectionSub_Table_0--${pageName}"
|
|
|
|
|
<table name="sameVehicleInspectionSub_Table_0"
|
|
|
|
|
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
|
|
|
|
@ -339,8 +339,9 @@
|
|
|
|
|
<th class="dummy-th"></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="sameVehicleInspectionSubTbody--${pageName}"></tbody>
|
|
|
|
|
<template id="sameVehicleInspectionSubRow--${pageName}">
|
|
|
|
|
<tbody name="sameVehicleInspectionSubTbody">
|
|
|
|
|
</tbody>
|
|
|
|
|
<template name="sameVehicleInspectionSubRow">
|
|
|
|
|
<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_NM}</td>
|
|
|
|
@ -359,7 +360,7 @@
|
|
|
|
|
<td class="dummy-td"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="sameVehicleInspectionSubNotFound--${pageName}">
|
|
|
|
|
<template name="sameVehicleInspectionSubNotFound">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<td valign="top" colspan="10" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -433,7 +434,7 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $("#photoInspectionTbody--${pageName}")[0]);
|
|
|
|
|
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("photoInspectionTbody"));
|
|
|
|
|
|
|
|
|
|
var dataKey = "";
|
|
|
|
|
var curDataVhrno = "";
|
|
|
|
@ -460,11 +461,11 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.alt.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $("#sameVehicleInspectionMainTbody--${pageName}")[0]);
|
|
|
|
|
Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $P.find("sameVehicleInspectionMainTbody"));
|
|
|
|
|
if(dataItem){
|
|
|
|
|
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
|
|
|
|
|
} else {
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").html("");
|
|
|
|
|
$P.$find("sameVehicleInspectionSubTbody").html("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -475,14 +476,14 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.shift.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $("#sameVehicleInspectionSubTbody--${pageName}")[0]);
|
|
|
|
|
Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $P.find("sameVehicleInspectionSubTbody"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
var searchForm = $("#frmSearch--${pageName}");
|
|
|
|
|
var searchForm = $P.$find("frmSearch");
|
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
@ -505,18 +506,18 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var clsForTask = taskSeCd.toLowerCase();
|
|
|
|
|
//업무별 조회조건
|
|
|
|
|
renderForTask("frmSearch--${pageName}", clsForTask);
|
|
|
|
|
renderForTask($P.find("frmSearch"), clsForTask);
|
|
|
|
|
//업무별 버튼
|
|
|
|
|
renderForTask("gridbuttonArea--${pageName}", clsForTask);
|
|
|
|
|
renderForTask($P.find("gridbuttonArea"), clsForTask);
|
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
|
|
$("#btnOpenOverTime--${pageName}").off("click");
|
|
|
|
|
$("#btnOpenOverTime--${pageName}").on("click", () => $P.openOverTimePop());
|
|
|
|
|
$P.$find("btnOpenOverTime").off("click");
|
|
|
|
|
$P.$find("btnOpenOverTime").on("click", () => $P.openOverTimePop());
|
|
|
|
|
|
|
|
|
|
$('#btnPhotoInspection--${pageName}').trigger("click");
|
|
|
|
|
$P.$find('btnPhotoInspection').trigger("click");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
var formFields = new FimsFormFields($P.selector("frmSearch"));
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
|
|
|
|
|
if($P.currentDisplay == "photoInspection"){
|
|
|
|
@ -651,8 +652,8 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs(
|
|
|
|
|
$("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
$($("#photoInspectionRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")
|
|
|
|
|
$P.$find("photoInspection_Table_0").find("thead th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
$($P.find("photoInspectionRow").content).find("td").not(".dummy-td").not(":eq(0)")
|
|
|
|
|
);
|
|
|
|
|
$P.ctrl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
@ -671,8 +672,8 @@ $(document).ready(function(){
|
|
|
|
|
if(excelTarget == "main"){
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs(
|
|
|
|
|
$("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
|
|
|
|
|
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td")
|
|
|
|
|
$P.$find("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"),
|
|
|
|
|
$($P.find("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td")
|
|
|
|
|
);
|
|
|
|
|
$P.alt.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
@ -680,8 +681,8 @@ $(document).ready(function(){
|
|
|
|
|
} else if(excelTarget == "sub"){
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs(
|
|
|
|
|
$("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"),
|
|
|
|
|
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"),
|
|
|
|
|
$P.$find("sameVehicleInspectionSub_Table_0").find("thead th").not(".dummy-th"),
|
|
|
|
|
$($P.find("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"),
|
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
|
);
|
|
|
|
|
$P.shift.query.cellDefs = cellDefs;
|
|
|
|
@ -699,23 +700,23 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
switch (gridType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
notFound = [document.getElementById("photoInspectionNotFound--${pageName}").innerHTML]
|
|
|
|
|
found = document.getElementById("photoInspectionRow--${pageName}").innerHTML;
|
|
|
|
|
notFound = [$P.find("photoInspectionNotFound").innerHTML]
|
|
|
|
|
found = $P.find("photoInspectionRow").innerHTML;
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
notFound = [document.getElementById("sameVehicleInspectionMainNotFound--${pageName}").innerHTML];
|
|
|
|
|
found = document.getElementById("sameVehicleInspectionMainRow--${pageName}").innerHTML;
|
|
|
|
|
notFound = [$P.find("sameVehicleInspectionMainNotFound").innerHTML];
|
|
|
|
|
found = $P.find("sameVehicleInspectionMainRow").innerHTML;
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
notFound = [document.getElementById("sameVehicleInspectionSubNotFound--${pageName}").innerHTML]
|
|
|
|
|
found = document.getElementById("sameVehicleInspectionSubRow--${pageName}").innerHTML;
|
|
|
|
|
notFound = [$P.find("sameVehicleInspectionSubNotFound").innerHTML]
|
|
|
|
|
found = $P.find("sameVehicleInspectionSubRow").innerHTML;
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');");
|
|
|
|
@ -741,7 +742,7 @@ $(document).ready(function(){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#photoInspection-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore);
|
|
|
|
|
$P.find("photoInspection-responsive").changeContent(trs, initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
@ -750,12 +751,12 @@ $(document).ready(function(){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore);
|
|
|
|
|
$P.find("sameVehicleInspectionMain-responsive").changeContent(trs, initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").html(trs);
|
|
|
|
|
$P.$find("sameVehicleInspectionSubTbody").html(trs);
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
@ -770,7 +771,7 @@ $(document).ready(function(){
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
|
|
|
|
|
if(dataKey != ""){
|
|
|
|
|
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
$P.$find("photoInspectionTbody").setCurrentRow(dataKey);
|
|
|
|
|
Apply.toDataset.current($P.ctrl.dataset, dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -784,7 +785,7 @@ $(document).ready(function(){
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
$P.$find("sameVehicleInspectionMainTbody").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.alt.dataset, dataKey);
|
|
|
|
|
|
|
|
|
@ -795,7 +796,7 @@ $(document).ready(function(){
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
$P.$find("sameVehicleInspectionSubTbody").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.shift.dataset, dataKey);
|
|
|
|
|
break;
|
|
|
|
@ -804,7 +805,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
$P.dblclickInspectionDataList = (dataKey) => {
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
|
|
|
|
|
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
var dialogUrl = wctx.url("/sprt/sprt02/010/main.do");
|
|
|
|
|
|
|
|
|
@ -894,7 +895,7 @@ $(document).ready(function(){
|
|
|
|
|
"callPurpose" : "create"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val();
|
|
|
|
|
var taskSeCd = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"),
|
|
|
|
@ -1010,54 +1011,55 @@ $(document).ready(function(){
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); //초기화버튼
|
|
|
|
|
$('#btnPhotoInspection--${pageName}').on('click', () => {
|
|
|
|
|
$P.$find("btnReset").on('click', () => $P.fnReset()); //초기화버튼
|
|
|
|
|
$P.$find("btnPhotoInspection").on('click', () => {
|
|
|
|
|
|
|
|
|
|
$(".area-photoinspection").show();
|
|
|
|
|
$(".area-samevehicleinspection").hide();
|
|
|
|
|
|
|
|
|
|
$('#btnPhotoInspection--${pageName}').addClass("active");
|
|
|
|
|
$('#btnSameVehicleInspection--${pageName}').removeClass("active");
|
|
|
|
|
$P.$find('btnPhotoInspection').addClass("active");
|
|
|
|
|
$P.$find('btnSameVehicleInspection').removeClass("active");
|
|
|
|
|
$P.currentDisplay = "photoInspection";
|
|
|
|
|
});
|
|
|
|
|
$('#btnSameVehicleInspection--${pageName}').on('click', () => {
|
|
|
|
|
$P.$find("btnSameVehicleInspection").on('click', () => {
|
|
|
|
|
|
|
|
|
|
$(".area-samevehicleinspection").show();
|
|
|
|
|
$(".area-photoinspection").hide();
|
|
|
|
|
|
|
|
|
|
$('#btnSameVehicleInspection--${pageName}').addClass("active");
|
|
|
|
|
$('#btnPhotoInspection--${pageName}').removeClass("active");
|
|
|
|
|
$P.$find("btnSameVehicleInspection").addClass("active");
|
|
|
|
|
$P.$find("btnPhotoInspection").removeClass("active");
|
|
|
|
|
$P.currentDisplay = "sameVehicleInspection";
|
|
|
|
|
});
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
|
|
|
|
|
|
$P.$find('btnSearch').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
|
$("#term--${pageName}").onEnterPress($P.searchInspectionList);
|
|
|
|
|
|
|
|
|
|
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
|
|
|
|
|
$P.$find("btnExcel").on('click', () => $P.fnExcelDown());
|
|
|
|
|
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
|
|
|
|
|
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
|
|
|
|
|
|
fnMakeResizableTable($("#photoInspection-responsive--${pageName}")[0]);
|
|
|
|
|
fnMakeResizableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0]);
|
|
|
|
|
fnMakeResizableTable($("#sameVehicleInspectionSub-responsive--${pageName}")[0]);
|
|
|
|
|
fnMakeResizableTable($P.find("photoInspection-responsive"));
|
|
|
|
|
fnMakeResizableTable($P.find("sameVehicleInspectionMain-responsive"));
|
|
|
|
|
fnMakeResizableTable($P.find("sameVehicleInspectionSub-responsive"));
|
|
|
|
|
//스크롤 테이블
|
|
|
|
|
fnMakeScrollableTable($("#photoInspection-responsive--${pageName}")[0], $P.scrollInspectionDataList);
|
|
|
|
|
fnMakeScrollableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0], $P.scrollInspectionDataList);
|
|
|
|
|
fnMakeScrollableTable($P.find("photoInspection-responsive"), $P.scrollInspectionDataList);
|
|
|
|
|
fnMakeScrollableTable($P.find("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList);
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
initDatepicker("frmSearch--${pageName}"); //달력 초기화
|
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
|
initDatepicker($P.find("frmSearch")); //달력 초기화
|
|
|
|
|
initDetailSearchButton($P.find("frmSearch"));
|
|
|
|
|
|
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
|
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
|
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|