빠른조회 수정

main
이범준 4 months ago
parent 62c85f0b51
commit d9ab7e4f8b

@ -146,7 +146,7 @@ public class Sprt01Controller extends ApplicationController {
* @return /fims/sprt/sprt01010
*/
@RequestMapping(name="통합조회 메인", value=METHOD_URL.integrationSearchMain)
public ModelAndView integrationSearchMain(HttpServletRequest req) {
public ModelAndView integrationSearchMain() {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01010-main");
mav.addObject("pageName", "sprt01010");
@ -173,18 +173,6 @@ public class Sprt01Controller extends ApplicationController {
addCodes(commonCodes, mav, "FIM003", "FIM010", "FIM026", "FIM054"
,"FIM004","FIM005","FIM006","FIM061","FIM064");
String fastBy = req.getParameter("fastBy");
String fastTerm = req.getParameter("fastTerm");
if(!ifEmpty(fastBy, () -> "").equals("") && !ifEmpty(fastTerm, () -> "").equals("")) {
mav.addObject("fastSearch", toJson(Map.of(
"fastBy", fastBy,
"fastTerm", fastTerm
)));
} else {
mav.addObject("fastSearch", "null");
}
return mav;
}

@ -135,8 +135,6 @@ $(document).ready(function() {
});
};
$P.fastSearch = ${fastSearch};
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
animation: true,
autohide: true,
@ -840,15 +838,18 @@ $(document).ready(function() {
$P.fnResetAndChangeBiz("");
if($P.fastSearch != null){
if($P.fastSearch.fastBy == "vhrno"){
$("#ischVhrno--${pageName}").val($P.fastSearch.fastTerm);
} else if($P.fastSearch.fastBy == "rtpyrNm"){
$("#ischRtpyrNm--${pageName}").val($P.fastSearch.fastTerm);
} else if($P.fastSearch.fastBy == "rtpyrNo"){
$("#ischRtpyrNo--${pageName}").val($P.fastSearch.fastTerm);
} else if($P.fastSearch.fastBy == "cvlcptAplcntNm"){
$("#ischCvlcptAplcntNm--${pageName}").val($P.fastSearch.fastTerm);
if(fastSearch){
fastSearch = false;
if($("#fastBy--top").val() == "vhrno"){
$("#ischVhrno--${pageName}").val($("#fastTerm--top").val());
} else if($("#fastBy--top").val() == "rtpyrNm"){
$("#ischRtpyrNm--${pageName}").val($("#fastTerm--top").val());
} else if($("#fastBy--top").val() == "rtpyrNo"){
$("#ischRtpyrNo--${pageName}").val($("#fastTerm--top").val());
} else if($("#fastBy--top").val() == "cvlcptAplcntNm"){
$("#ischCvlcptAplcntNm--${pageName}").val($("#fastTerm--top").val());
} else {
return;
}

@ -492,14 +492,12 @@ function fnGlobalFastSearch(){
mainTabs.close(integrationSearchUrl);
}
if($("#fastTerm--top").val() != ""){
var fastTerm = $("#fastTerm--top").val();
var fastBy = $("#fastBy--top").val();
openMenu(integrationSearchUrl+"?fastBy="+fastBy+"&fastTerm="+fastTerm);
} else {
openMenu(integrationSearchUrl);
if($("#fastTerm--top").val() != ""){
fastSearch = true;
}
openMenu(integrationSearchUrl);
}
/*--------------------- 종합민원관리 클릭 이벤트 ---------------------*/

@ -172,6 +172,8 @@
});
});
let fastSearch = false;
var pageObject = {};
pageObject.childReq = [];
pageObject.parentRes = [];

Loading…
Cancel
Save