From 8e92949fa3514f61ec221ac7906de325870d9174 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Thu, 26 Jan 2023 20:48:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8B=A8=EC=86=8D=ED=98=84=ED=99=A9?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EC=A7=84=ED=96=89=20=20=20=20=20=20=20-?= =?UTF-8?q?=20dataset(fmt-type)=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=ED=8F=AC=EB=A7=B7=20=EC=A0=81=EC=9A=A9=20=20=20=20?= =?UTF-8?q?=20=20=20-=20=EC=9C=84=EB=B0=98=EC=A0=95=EB=B3=B4=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=ED=95=AD=EB=AA=A9=20=EC=A1=B0=EC=A0=95=20=EB=B0=8F?= =?UTF-8?q?=20fmt-type=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/rt/rt-reglt-and-erpp-mysql-mapper.xml | 88 +- .../fims/biz/cmm/cmmFimsCrackdownMgtPopup.jsp | 119 ++- .../cmm/cmmFimsCrackdownMgtPopup_backup.jsp | 830 ++++++++++++++++++ .../rt/rtCrackdownExtrInterfaceMgtForm.jsp | 15 +- .../resources/biz/common/js/codeComboData.js | 8 +- .../resources/framework/js/cmm/cmmUtil.js | 27 +- 6 files changed, 1012 insertions(+), 75 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmFimsCrackdownMgtPopup_backup.jsp diff --git a/src/main/resources/sqlmapper/biz/rt/rt-reglt-and-erpp-mysql-mapper.xml b/src/main/resources/sqlmapper/biz/rt/rt-reglt-and-erpp-mysql-mapper.xml index 5bb8373b..ac8b085a 100644 --- a/src/main/resources/sqlmapper/biz/rt/rt-reglt-and-erpp-mysql-mapper.xml +++ b/src/main/resources/sqlmapper/biz/rt/rt-reglt-and-erpp-mysql-mapper.xml @@ -8,38 +8,42 @@ ************************************************************************************************************** --> SELECT trr.reglt_id - , trr.payer_id - , trr.instt_code - , trr.sys_code - , trr.reglt_se_code - , trr.input_se_code + , trr.payer_id -- 납부자ID + , trr.instt_code -- 기관코드 + , trr.sys_code -- 시스템코드 + , trr.reglt_se_code -- 단속구분코드 + , trr.input_se_code -- 입력구분코드 , trr.reglt_de - , trr.reglt_begin_time - , trr.reglt_end_time - , trr.violt_lrg_code - , trr.violt_dtls_code - , trr.violt_dtls_etc_cn - , trr.reglt_place - , trr.violt_co - , trr.violt_legaldong_code + , trr.reglt_begin_time -- 단속시작시간 + , trr.reglt_end_time -- 단속종료시간 + , trr.violt_lrg_code -- 위반 법규 코드 + , trr.violt_dtls_code -- 위반내역코드 + , trr.violt_dtls_etc_cn -- 위반내역 기타 내용 + , trr.reglt_place -- 위반장소 + , trr.violt_co -- 위반횟수 + , trr.violt_legaldong_code -- 위반법정코드 , trr.gps_x , trr.gps_y - , trr.towng_at_code - , trr.stickr_no - , trr.image_nmrs - , trr.redution_amount - , trr.redution_aft_amount - , trr.rciv_amount - , trr.rdcamt - , trr.adamt - , trr.vhcle_no - , trr.vhcle_nm - , trr.regist_dt - , trr.spcmnt_matter + , trr.towng_at_code -- 견인여부 코드 + , trr.stickr_no -- 스티커 번호 + , trr.image_nmrs -- 이미지매수 + , trr.redution_amount -- 감경금액 + , trr.redution_aft_amount -- 감경후 금액 + , trr.rciv_amount -- 수납금액 + , trr.rdcamt -- 감액 + , trr.adamt -- 가산금 + , trr.vhcle_no -- 차량번호 + , trr.vhcle_nm -- 차량명 + , trr.vhcty_cl_code -- 차종분류코드 + , trr.vhcty_asort_code -- 차종종별코드 + , trr.vin -- 차대번호 + , trr.spcmnt_matter -- 특기사항 + , trr.reglt_specl_zone_se_code -- 단속특별구역코드 , trr.reglt_process_sttus_code + , trr.regist_dt FROM tb_rt_reglt trr - LEFT OUTER JOIN tb_rt_erpp tre - ON trr.reglt_id = tre.reglt_id + -- LEFT OUTER JOIN tb_rt_erpp tre + -- ON trr.reglt_id = tre.reglt_id + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtCrackdownExtrInterfaceMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtCrackdownExtrInterfaceMgtForm.jsp index 040bb767..8e9847a8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtCrackdownExtrInterfaceMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtCrackdownExtrInterfaceMgtForm.jsp @@ -24,9 +24,12 @@ Date Author Description - - - + +
  • @@ -313,6 +316,10 @@ Date Author Description ,sch_date_from: $('#sch_date_from').val() ,sch_date_to: $('#sch_date_to').val() ,[$('#sch_opt').val()]: $('#sch_word').val() + ,sysCode: $('#sysCode').val() + ,regltSeCode: $('#regltSeCode').val() + //,cnfmYn: $('input[name=regltYn]:checked').val() + ,cnfmYn: $('#cnfmYn').val() } return getPageParam(param, params); } @@ -348,7 +355,7 @@ Date Author Description * initialize **************************************************************************/ $(document).ready(function(){ - $('#sch_date_from').datepicker('setDate', DateUtil.getDateDay(-364).date); + $('#sch_date_from').datepicker('setDate', DateUtil.getDateDay(-5475).date); $('#sch_date_to').datepicker('setDate', new Date()); initGrid(); }); diff --git a/src/main/webapp/resources/biz/common/js/codeComboData.js b/src/main/webapp/resources/biz/common/js/codeComboData.js index 7a0a15ef..adf11819 100644 --- a/src/main/webapp/resources/biz/common/js/codeComboData.js +++ b/src/main/webapp/resources/biz/common/js/codeComboData.js @@ -38,8 +38,8 @@ ComboCodeData = { ,{value: '03', text: '시민'} ] - // 위반내역코드 : FIM004 - ,inputSeCode: [ + // 위반내역코드(주정차) : FIM004 + ,violtDtlsCode: [ {value: '01', text: '주정차 금지구역'} ,{value: '02', text: '보도(인도)위'} ,{value: '03', text: '어린이보호구역'} @@ -59,7 +59,7 @@ ComboCodeData = { ] // 위반내역코드(전용차로) : FIM005 - ,violtDtlsCode: [ + ,violtDtlsCode2: [ {value: '01', text: '버스전용차로'} ,{value: '02', text: '버스전용차로'} ,{value: '03', text: '다인승전용차로'} @@ -67,7 +67,7 @@ ComboCodeData = { ] // 단속 특별 구역 구분 코드 : FIM006 - ,FIM006: [ + ,regltSpeclZoneSeCode: [ {value: '01', text: '어린이 보호구역'} ,{value: '02', text: '노인 보호구역'} ,{value: '03', text: '소방시설'} diff --git a/src/main/webapp/resources/framework/js/cmm/cmmUtil.js b/src/main/webapp/resources/framework/js/cmm/cmmUtil.js index 394ad1e3..9bc0ac8d 100644 --- a/src/main/webapp/resources/framework/js/cmm/cmmUtil.js +++ b/src/main/webapp/resources/framework/js/cmm/cmmUtil.js @@ -537,6 +537,7 @@ function serialize (formData) { /** * form 에 json data set * 태그명으로 일치 - 동일 태그명이 여럿존재하는 경우 idx만 set + * element tag에 data-fmt-type 으로 데이타 format이 지정된 경우 해당 포맷으로 출력 * @param {object} formObj document.querySelector('form') * @param {object} jsonData json type data * @param {number} idx 태그명 배열의 index (default = 0) @@ -545,7 +546,31 @@ function setFormData(formObj, jsonData, idx= 0){ let els = formObj.elements; if(!els) els = formObj[0]; for(let e of els){ - document.getElementsByName(e.name)[idx].value = jsonData[e.name] ?? '' ; + let val = jsonData[e.name] ?? ''; + + // element data-fmt-type에 정의된 format 적용 + // dt - yyyy-mm-dd HH:mm:ss, day - yyyy-mm-dd, time - HH:mm:ss, number - #,### + if(e.dataset.fmtType){ + const fmtType = e.dataset.fmtType; + switch (fmtType) { + case 'dt' : + val = setDateTimeFmt(val ); + break; + case 'day' : + val = setDateFmt(val); + break; + case 'time' : + val = setTimeFmt(val); + break; + case 'number' : + val = setComma(val); + break; + default: + break; + + } + } + document.getElementsByName(e.name)[idx].value = val ; } }