no message

main
이범준 10 months ago
parent bac3ad0807
commit 5847a4d5b1

@ -66,12 +66,14 @@
data-maxlengthb="30" /> data-maxlengthb="30" />
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<button type="button" id="btnViewCrdnList--${pageName}" class="btn btn-outline-dark float-end mx-2"> <span class="float-end">
동일번호&nbsp;<span id="outputCrdnCount--${pageName}"></span>건 <button type="button" id="btnViewCrdnList--${pageName}" class="btn btn-outline-dark mx-2">
</button> 동일번호&nbsp;<span id="outputCrdnCount--${pageName}"></span>건
<button type="button" id="btnViewCvlcptDscsnList--${pageName}" class="btn btn-outline-dark float-end mx-2"> </button>
차량민원&nbsp;<span id="outputCvlcptDscsnCount--${pageName}"></span>건 <button type="button" id="btnViewCvlcptDscsnList--${pageName}" class="btn btn-outline-dark mx-2">
</button> 차량민원&nbsp;<span id="outputCvlcptDscsnCount--${pageName}"></span>건
</button>
</span>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="vltnCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end"> <label for="vltnCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
@ -878,7 +880,7 @@ $(document).ready(function(){
//차적조회 //차적조회
$("#vhrno--${pageName}").onEnterPress(async function(){ $("#vhrno--${pageName}").onEnterPress(async function(){
var taskSeCd = "${taskSeCd}";
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
var vhrnoEl = event.target; var vhrnoEl = event.target;
var vhrno = vhrnoEl.value; var vhrno = vhrnoEl.value;
@ -909,7 +911,7 @@ $(document).ready(function(){
var resp = null; var resp = null;
// //
resp = await countCrdnByVhrno(vhrno, "${taskSeCd}", sggCd); resp = await countCrdnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.crdnCount > 0){ if(resp.crdnCount > 0){
$("#outputCrdnCount--${pageName}").html(resp.crdnCount); $("#outputCrdnCount--${pageName}").html(resp.crdnCount);
$("#btnViewCrdnList--${pageName}").removeAttr("hidden"); $("#btnViewCrdnList--${pageName}").removeAttr("hidden");
@ -918,7 +920,7 @@ $(document).ready(function(){
} }
// //
resp = await countCvlcptDscsnByVhrno(vhrno, "${taskSeCd}", sggCd); resp = await countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.cvlcptDscsnNocs.NOCS > 0){ if(resp.cvlcptDscsnNocs.NOCS > 0){
$("#outputCvlcptDscsnCount--${pageName}").html(resp.cvlcptDscsnNocs.NOCS); $("#outputCvlcptDscsnCount--${pageName}").html(resp.cvlcptDscsnNocs.NOCS);
$("#btnViewCvlcptDscsnList--${pageName}").removeAttr("hidden"); $("#btnViewCvlcptDscsnList--${pageName}").removeAttr("hidden");
@ -996,7 +998,7 @@ $(document).ready(function(){
$("#addr--${pageName}").val(vehicle.road_nm_adres); //주소 $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소 $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
if("${taskSeCd}" == "DPV"){ if(taskSeCd == "DPV"){
resp = await getVhclDisabledParkingInfo(vhrno); resp = await getVhclDisabledParkingInfo(vhrno);
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") { if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
@ -1015,8 +1017,8 @@ $(document).ready(function(){
url: wctx.url("/crdn/crdn06/010/main.do"), url: wctx.url("/crdn/crdn06/010/main.do"),
data: { data: {
openType : "D", openType : "D",
vhrno : "", vhrno : $("#vhrno--${pageName}").val(),
taskSeCd : "" taskSeCd : "${taskSeCd}"
}, },
success: function(resp) { success: function(resp) {
dialog.open({ dialog.open({
@ -1035,7 +1037,26 @@ $(document).ready(function(){
//민원내역 보기 //민원내역 보기
$("#btnViewCvlcptDscsnList--${pageName}").on("click", function(){ $("#btnViewCvlcptDscsnList--${pageName}").on("click", function(){
ajax.get({
url: wctx.url("/sprt/sprt04/010/main.do"),
data: {
openType : "D",
vhrno : $("#vhrno--${pageName}").val(),
taskSeCd : "${taskSeCd}"
},
success: function(resp) {
dialog.open({
id : "cvlcptDscsnListdialog--${pageName}",
title : "민원상담 내역",
content : resp,
size : "xl",
init : () => {
setDialogZindex();
},
onClose : () => {}
});
}
});
}); });

@ -33,8 +33,7 @@ LoadScript("integrationSearchScript","/resources/js/fims/sprt/integrationSearch.
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
var fastSearch = ${fastSearch};
// 공통 코드 // 공통 코드
var FIM054 = new CommonCodes(${FIM054}, true); var FIM054 = new CommonCodes(${FIM054}, true);
@ -143,6 +142,8 @@ integrationSearchControl.downdataset.onSelectionChange = (selected) => {
**************************************************************************/ **************************************************************************/
var integrationSearch = {}; var integrationSearch = {};
integrationSearch.fastSearch = ${fastSearch};
integrationSearch.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), { integrationSearch.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
animation: true, animation: true,
autohide: true, autohide: true,
@ -844,15 +845,15 @@ $(document).ready(function() {
integrationSearch.fnResetAndChangeBiz(""); integrationSearch.fnResetAndChangeBiz("");
if(fastSearch != null){ if(integrationSearch.fastSearch != null){
if(fastSearch.fastBy == "vhrno"){ if(integrationSearch.fastSearch.fastBy == "vhrno"){
$("#ischVhrno--${pageName}").val(fastSearch.fastTerm); $("#ischVhrno--${pageName}").val(integrationSearch.fastSearch.fastTerm);
} else if(fastSearch.fastBy == "rtpyrNm"){ } else if(integrationSearch.fastSearch.fastBy == "rtpyrNm"){
$("#ischRtpyrNm--${pageName}").val(fastSearch.fastTerm); $("#ischRtpyrNm--${pageName}").val(integrationSearch.fastSearch.fastTerm);
} else if(fastSearch.fastBy == "rtpyrNo"){ } else if(integrationSearch.fastSearch.fastBy == "rtpyrNo"){
$("#ischRtpyrNo--${pageName}").val(fastSearch.fastTerm); $("#ischRtpyrNo--${pageName}").val(integrationSearch.fastSearch.fastTerm);
} else if(fastSearch.fastBy == "cvlcptAplcntNm"){ } else if(integrationSearch.fastSearch.fastBy == "cvlcptAplcntNm"){
$("#ischCvlcptAplcntNm--${pageName}").val(fastSearch.fastTerm); $("#ischCvlcptAplcntNm--${pageName}").val(integrationSearch.fastSearch.fastTerm);
} else { } else {
return; return;
} }

@ -339,12 +339,12 @@ function fn_photoMask(flag, element){
/*--------------------- 통합조회 버튼 클릭 이벤트 ---------------------*/ /*--------------------- 통합조회 버튼 클릭 이벤트 ---------------------*/
$("#btnFastSearch--top").on( "click", function() { $("#btnFastSearch--top").on( "click", function() {
doFastSearch(); fnGlobalFastSearch();
}); });
$("#fastTerm--top").onEnterPress(doFastSearch); $("#fastTerm--top").onEnterPress(fnGlobalFastSearch);
function doFastSearch(){ function fnGlobalFastSearch(){
closeTab("17"); closeTab("17");
var itegrationSearchMenu = $("#menus").find("li[data-key='17'] a")[0]; var itegrationSearchMenu = $("#menus").find("li[data-key='17'] a")[0];

Loading…
Cancel
Save