diff --git a/src/main/webapp/WEB-INF/jsp/dashboard.jsp b/src/main/webapp/WEB-INF/jsp/dashboard.jsp
index 148581bb..f29a96ae 100644
--- a/src/main/webapp/WEB-INF/jsp/dashboard.jsp
+++ b/src/main/webapp/WEB-INF/jsp/dashboard.jsp
@@ -569,12 +569,12 @@ function fnRenderProgressAndTotal(returnData, cursor){
}
if(cursor == "card1"){
- mappingButtonAndMenu("btnGoToCrdn","단속 관리");
+ FimsSupport.mappingButtonAndMenu("btnGoToCrdn","단속 관리");
return;
}
if(cursor == "card2"){
- mappingButtonAndMenu("btnGoToOpnn","의견제출 관리");
+ FimsSupport.mappingButtonAndMenu("btnGoToOpnn","의견제출 관리");
return;
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp
index c03b190f..dd85da9e 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp
@@ -67,7 +67,7 @@
단속자료 |
+ class="downsize" ondblclick="FimsSupport.fnDownsizeToggle(this);" href="#">
파일명
|
타임스탬프 |
@@ -328,7 +328,7 @@ $(document).ready(function(){
$P.$find("table-responsive").find("tbody").html(trs);
if(listLength != 0){
- fnDownsizeCheck($P.$find("table-responsive").find("table")[0]);
+ FimsSupport.fnDownsizeCheck($P.$find("table-responsive").find("table")[0]);
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
index ae9db40d..158ebd76 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
@@ -736,7 +736,7 @@ $(document).ready(function(){
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
- }
+ },
onClose : () => { $P.refreshPayer(); } // callback
});
}
@@ -959,7 +959,7 @@ $(document).ready(function(){
var resp = null;
//
- resp = await countCrdnByVhrno(vhrno, taskSeCd, sggCd);
+ resp = await FimsSupport.countCrdnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.crdnCount > 0){
$P.$find("outputCrdnCount").html(resp.crdnCount);
$P.$find("btnViewCrdnList").removeAttr("hidden");
@@ -968,7 +968,7 @@ $(document).ready(function(){
}
//
- resp = await countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
+ resp = await FimsSupport.countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.cvlcptDscsnNocs.NOCS > 0){
$P.$find("outputCvlcptDscsnCount").html(resp.cvlcptDscsnNocs.NOCS);
$P.$find("btnViewCvlcptDscsnList").removeAttr("hidden");
@@ -977,7 +977,7 @@ $(document).ready(function(){
}
//
- resp = await getVhclInfo(sggCd, vhrno, crdnYmd);
+ resp = await FimsSupport.getVhclInfo(sggCd, vhrno, crdnYmd);
if(otherWindow){
$P.$find("vhrno").val(vhrno);
@@ -1062,7 +1062,7 @@ $(document).ready(function(){
$P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
if(taskSeCd == "DPV"){
- resp = await getVhclDisabledParkingInfo(vhrno);
+ resp = await FimsSupport.getVhclDisabledParkingInfo(vhrno);
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
$P.$find("prkPsbltyRsltCd").val("2");
diff --git a/src/main/webapp/WEB-INF/jsp/include/tail.jsp b/src/main/webapp/WEB-INF/jsp/include/tail.jsp
index c1792c0f..78abc200 100644
--- a/src/main/webapp/WEB-INF/jsp/include/tail.jsp
+++ b/src/main/webapp/WEB-INF/jsp/include/tail.jsp
@@ -41,6 +41,9 @@
">
">
+
+">
+
">
@@ -50,12 +53,10 @@
">
">
-
-">
+
">
-
-">
+
">
">
diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp
index d02e96b1..b53ff839 100644
--- a/src/main/webapp/WEB-INF/jsp/include/top.jsp
+++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp
@@ -534,11 +534,11 @@ function fnGlobalFastSearch(){
}
/*--------------------- 종합민원관리 클릭 이벤트 ---------------------*/
-mappingButtonAndMenu("btnGoToCvlcptDscsn","민원상담");
+FimsSupport.mappingButtonAndMenu("btnGoToCvlcptDscsn","민원상담");
/*--------------------- 일정관리 클릭 이벤트 ---------------------*/
-mappingButtonAndMenu("btnGoToNtc","공지사항");
+FimsSupport.mappingButtonAndMenu("btnGoToNtc","공지사항");
/*--------------------- 공지사항 클릭 이벤트 ---------------------*/
-mappingButtonAndMenu("btnGoToSchdl","일정관리");
+FimsSupport.mappingButtonAndMenu("btnGoToSchdl","일정관리");
/*--------------------- 사용자 메뉴얼 클릭 이벤트 ---------------------*/
$("#btnDownloadMenual--top").on( "click", function() {
diff --git a/src/main/webapp/resources/js/fims/cmmn/button.js b/src/main/webapp/resources/js/fims/cmmn/button.js
deleted file mode 100644
index c922fc81..00000000
--- a/src/main/webapp/resources/js/fims/cmmn/button.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * 버튼과 메뉴를 매핑한다.
- */
-function mappingButtonAndMenu(buttonId, menuNm){
- $("#"+buttonId).on( "click", function() {
- $("#menus").find("div[data-i18n='"+menuNm+"']").parent("a").trigger("click");
- });
-}
\ No newline at end of file
diff --git a/src/main/webapp/resources/js/fims/cmmn/downsize.js b/src/main/webapp/resources/js/fims/cmmn/downsize.js
deleted file mode 100644
index 863664f9..00000000
--- a/src/main/webapp/resources/js/fims/cmmn/downsize.js
+++ /dev/null
@@ -1,45 +0,0 @@
-//테이블 렌더링 후 축소 처리할 컬럼 확인
-function fnDownsizeCheck(tableObj) {
- $(tableObj).find("thead tr th").each(function(){
- var thIndex = $(this).index();
- if($(this).hasClass("downsize")){
- var trs = $(this).parent("tr").parent("thead").next("tbody").find("tr");
- trs.each(function(){
- $(this).find("td:eq("+thIndex+")").css("max-width","160px");
- });
- }
- });
-}
-
-//테이블 컬럼 축소 여부 변경
-function fnDownsizeToggle(thObj) {
-
- $(thObj).toggleClass("downsize");
-
- var thIndex = $(thObj).index();
-
- var setValue = "";
- if($(thObj).hasClass("downsize")){
- setValue = "160px";
- }
-
- var tbody = $(thObj).parent("tr").parent("thead").next("tbody");
- if(tbody.length < 1){
- return;
- }
-
- var trs = tbody.find("tr");
-
- if(trs.length < 1){
- return;
- }
-
- if(trs.length == 1 && trs.find("td").length <= 1){
- return;
- }
-
- trs.each(function(){
- $(this).find("td:eq("+thIndex+")").css("max-width",setValue);
- });
-
-};
\ No newline at end of file
diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-support.js b/src/main/webapp/resources/js/fims/cmmn/fims-support.js
new file mode 100644
index 00000000..b40e2afe
--- /dev/null
+++ b/src/main/webapp/resources/js/fims/cmmn/fims-support.js
@@ -0,0 +1,155 @@
+class FimsSupport {
+
+ static help(){
+ console.log("메소드 목록");
+ console.log("mappingButtonAndMenu(버튼id, 메뉴이름) : 버튼과 메뉴를 매핑한다.");
+ console.log("fnDownsizeToggle(th객체) : 테이블 컬럼 축소 여부 변경");
+ console.log("fnDownsizeCheck(html테이블객체) : 테이블 렌더링 후 축소 처리할 컬럼 확인");
+ console.log("countCrdnByVhrno(차량번호, 업무구분코드, 시군구코드) : 차량번호로 단속 건수 조회");
+ console.log("countCvlcptDscsnByVhrno(차량번호, 업무구분코드, 시군구코드) : 차량번호로 민원상담 건수 조회");
+ console.log("getVhclInfo(시군구코드, 차량번호, 기준일자) : 시군구코드, 차량번호, 기준일자로 차적 조회");
+ console.log("getVhclDisabledParkingInfo(차량번호) : 장애인 차량여부 조회");
+
+ }
+
+ /**************************************************************************
+ * 버튼과 메뉴를 매핑한다.
+ **************************************************************************/
+ static mappingButtonAndMenu(buttonId, menuNm){
+ $("#"+buttonId).on( "click", function() {
+ $("#menus").find("div[data-i18n='"+menuNm+"']").parent("a").trigger("click");
+ });
+ }
+
+ /**************************************************************************
+ * 테이블 컬럼 축소 여부 변경
+ **************************************************************************/
+ static fnDownsizeToggle(thObj) {
+
+ $(thObj).toggleClass("downsize");
+
+ var thIndex = $(thObj).index();
+
+ var setValue = "";
+ if($(thObj).hasClass("downsize")){
+ setValue = "160px";
+ }
+
+ var tbody = $(thObj).parent("tr").parent("thead").next("tbody");
+ if(tbody.length < 1){
+ return;
+ }
+
+ var trs = tbody.find("tr");
+
+ if(trs.length < 1){
+ return;
+ }
+
+ if(trs.length == 1 && trs.find("td").length <= 1){
+ return;
+ }
+
+ trs.each(function(){
+ $(this).find("td:eq("+thIndex+")").css("max-width",setValue);
+ });
+
+ }
+
+ /**************************************************************************
+ * 테이블 렌더링 후 축소 처리할 컬럼 확인
+ **************************************************************************/
+ static fnDownsizeCheck(tableObj) {
+ $(tableObj).find("thead tr th").each(function(){
+ var thIndex = $(this).index();
+ if($(this).hasClass("downsize")){
+ var trs = $(this).parent("tr").parent("thead").next("tbody").find("tr");
+ trs.each(function(){
+ $(this).find("td:eq("+thIndex+")").css("max-width","160px");
+ });
+ }
+ });
+ }
+
+ /**************************************************************************
+ * 차량번호로 단속 건수 조회
+ **************************************************************************/
+ static async countCrdnByVhrno(vhrno, taskSeCd, sggCd){
+ return new Promise((resolve, reject) => {
+ json.get({
+ url: wctx.url("/"+taskSeCd+"/crdn/crdn06/010/nocs.do"),
+ data: {
+ vhrno : vhrno,
+ taskSeCd : taskSeCd,
+ sggCd : sggCd
+ },
+ success: function(resp, textStatus, jqXHR) {
+ resolve(resp);
+ },
+ error: function(jqXHR, textStatus, error) {
+ }
+ });
+ });
+ }
+
+ /**************************************************************************
+ * 차량번호로 민원상담 건수 조회
+ **************************************************************************/
+ static async countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd){
+ return new Promise((resolve, reject) => {
+ json.get({
+ url: wctx.url("/"+taskSeCd+"/sprt/sprt04/010/nocs.do"),
+ data: {
+ vhrno : vhrno,
+ taskSeCd : taskSeCd,
+ sggCd : sggCd
+ },
+ success: function(resp, textStatus, jqXHR) {
+ resolve(resp);
+ },
+ error: function(jqXHR, textStatus, error) {
+ }
+ });
+ });
+ }
+
+ /**************************************************************************
+ * 시군구코드, 차량번호, 기준일자로 차적 조회
+ **************************************************************************/
+ static async getVhclInfo(sggCd, vhrno, levy_stdde){
+ return new Promise((resolve, reject) => {
+ json.post({
+ url: wctx.url("/payer/vehicle.do"),
+ data: {
+ sggCd : sggCd,
+ vhrno : vhrno,
+ levy_stdde : levy_stdde
+ },
+ success: function(resp, textStatus, jqXHR) {
+ resolve(resp);
+ },
+ error: function(jqXHR, textStatus, error) {
+ }
+ });
+ });
+ };
+
+ /**************************************************************************
+ * 장애인 차량여부 조회
+ **************************************************************************/
+ static async getVhclDisabledParkingInfo(vhrno){
+ return new Promise((resolve, reject) => {
+ json.get({
+ url: wctx.url("/intf/disabledParking/parkingInfo"),
+ data: {
+ vehicleNo : vhrno
+ },
+ success: function(resp, textStatus, jqXHR) {
+ resolve(resp);
+ },
+ error: function(jqXHR, textStatus, error) {
+ }
+ });
+ });
+ }
+}
\ No newline at end of file
diff --git a/src/main/webapp/resources/js/fims/cmmn/searchUtil.js b/src/main/webapp/resources/js/fims/cmmn/searchUtil.js
index 8d2add6c..c611cda9 100644
--- a/src/main/webapp/resources/js/fims/cmmn/searchUtil.js
+++ b/src/main/webapp/resources/js/fims/cmmn/searchUtil.js
@@ -33,84 +33,7 @@ function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){
}
-/**************************************************************************
-* 차량번호로 단속 건수 조회
-**************************************************************************/
-async function countCrdnByVhrno(vhrno, taskSeCd, sggCd){
- return new Promise((resolve, reject) => {
- json.get({
- url: wctx.url("/"+taskSeCd+"/crdn/crdn06/010/nocs.do"),
- data: {
- vhrno : vhrno,
- taskSeCd : taskSeCd,
- sggCd : sggCd
- },
- success: function(resp, textStatus, jqXHR) {
- resolve(resp);
- },
- error: function(jqXHR, textStatus, error) {
- }
- });
- });
-}
-/**************************************************************************
-* 차량번호로 민원상담 건수 조회
-**************************************************************************/
-async function countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd){
- return new Promise((resolve, reject) => {
- json.get({
- url: wctx.url("/"+taskSeCd+"/sprt/sprt04/010/nocs.do"),
- data: {
- vhrno : vhrno,
- taskSeCd : taskSeCd,
- sggCd : sggCd
- },
- success: function(resp, textStatus, jqXHR) {
- resolve(resp);
- },
- error: function(jqXHR, textStatus, error) {
- }
- });
- });
-}
-/**************************************************************************
-* 시군구코드, 차량번호, 기준일자로 차적 조회
-**************************************************************************/
-async function getVhclInfo(sggCd, vhrno, levy_stdde){
- return new Promise((resolve, reject) => {
- json.post({
- url: wctx.url("/payer/vehicle.do"),
- data: {
- sggCd : sggCd,
- vhrno : vhrno,
- levy_stdde : levy_stdde
- },
- success: function(resp, textStatus, jqXHR) {
- resolve(resp);
- },
- error: function(jqXHR, textStatus, error) {
- }
- });
- });
-};
-/**************************************************************************
-* 장애인 차량여부 조회
-**************************************************************************/
-async function getVhclDisabledParkingInfo(vhrno){
- return new Promise((resolve, reject) => {
- json.get({
- url: wctx.url("/intf/disabledParking/parkingInfo"),
- data: {
- vehicleNo : vhrno
- },
- success: function(resp, textStatus, jqXHR) {
- resolve(resp);
- },
- error: function(jqXHR, textStatus, error) {
- }
- });
- });
-}
\ No newline at end of file
+