From a28c3d93530778b99371b5123244fe960cff73de Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 22 Jun 2023 13:18:57 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=B8=EB=A6=AC=EB=93=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 34 +++++++++---------- .../WEB-INF/jsp/fims/crdn/crdn06030-main.jsp | 32 ++++++++--------- .../js/fims/framework/cmm/initGrid.js | 21 ++++++------ 3 files changed, 42 insertions(+), 45 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 0e5242d6..5a6907d4 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -254,25 +254,25 @@ $(document).ready(function(){ * Grid ******************************* */ thisPO.gridColumns = [ - { header: '차량번호', name: 'VHRNO', width: 80, align: 'center' }, - { header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, align: 'center' }, - { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, align: 'center' }, - { header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, align: 'center' }, - { header: '수납금액', name: 'RCVMT_AMT', width: 100, align: 'right' }, - { header: '위반횟수', name: 'VLTN_NMTM', width: 80, align: 'right' }, + { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, + { header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, className: 'text-center' }, + { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }, + { header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, className: 'text-center' }, + { header: '수납금액', name: 'RCVMT_AMT', width: 100, className: 'text-end' }, + { header: '위반횟수', name: 'VLTN_NMTM', width: 80, className: 'text-center' }, { header: '위반장소', name: 'CRDN_PLC', width: 150 }, - { header: '주민번호(전체)', name: 'RTPYR_NO', width: 110, align: 'center', className: "privacy" }, - { header: '주민번호(마스킹)', name: 'RTPYR_NO_MASK', width: 110, align: 'center', className: "privacy-mask" }, - { header: '특기사항', name: 'ETC_CN', width: 80, align: 'center' }, - { header: '서손사유', name: 'ETC_CN', width: 80, align: 'center' }, + { header: '주민번호(전체)', name: 'RTPYR_NO', width: 110, className: 'text-center privacy' }, + { header: '주민번호(마스킹)', name: 'RTPYR_NO_MASK', width: 110, className: 'text-center privacy-mask' }, + { header: '특기사항', name: 'ETC_CN', width: 80, className: 'text-center' }, + { header: '서손사유', name: 'ETC_CN', width: 80, className: 'text-center' }, { header: '처리상태명', name: 'CRDN_STTS_NM', width: 80}, - { header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, align: 'center' }, - { header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, align: 'center' }, - { header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, align: 'center' }, - { header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, align: 'center' }, - { header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, align: 'center' }, - { header: '등록일시', name: 'REG_DT', width: 150, align: 'center' }, - { header: '최종처리일시', name: 'MDFCN_DT', width: 150, align: 'center' }, + { header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, className: 'text-center' }, + { header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, className: 'text-center' }, + { header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, className: 'text-center' }, + { header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, className: 'text-center' }, + { header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, className: 'text-center' }, + { header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' }, + { header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }, { header: '상태', name: 'CRDN_STTS_CD', hidden: true }, { header: '서손ID', name: 'LEVY_EXCL_ID', hidden: true }, { header: '소유자ID', name: 'RTPYR_ID', hidden: true }, diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp index 8953e832..cd29973e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp @@ -234,25 +234,23 @@ $(document).ready(function(){ * Grid ******************************* */ thisPO.gridColumns = [ - { header: '차량번호', name: 'VHRNO', width: 80, align: 'center' }, - { header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, align: 'center' }, - { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, align: 'center' }, - { header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, align: 'center' }, - { header: '수납금액', name: 'RCVMT_AMT', width: 100, align: 'right' }, - { header: '위반횟수', name: 'VLTN_NMTM', width: 80, align: 'right' }, + { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, + { header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, className: 'text-center' }, + { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }, + { header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, className: 'text-center' }, + { header: '수납금액', name: 'RCVMT_AMT', width: 100, className: 'text-end' }, + { header: '위반횟수', name: 'VLTN_NMTM', width: 80, className: 'text-center' }, { header: '위반장소', name: 'CRDN_PLC', width: 150 }, - { header: '주민번호(전체)', name: 'RTPYR_NO', width: 110, align: 'center', className: "privacy" }, - { header: '주민번호(마스킹)', name: 'RTPYR_NO_MASK', width: 110, align: 'center', className: "privacy-mask" }, - { header: '특기사항', name: 'ETC_CN', width: 80, align: 'center' }, - { header: '서손사유', name: 'ETC_CN', width: 80, align: 'center' }, + { header: '특기사항', name: 'ETC_CN', width: 80, className: 'text-center' }, + { header: '서손사유', name: 'ETC_CN', width: 80, className: 'text-center' }, { header: '처리상태명', name: 'CRDN_STTS_NM', width: 80}, - { header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, align: 'center' }, - { header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, align: 'center' }, - { header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, align: 'center' }, - { header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, align: 'center' }, - { header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, align: 'center' }, - { header: '등록일시', name: 'REG_DT', width: 150, align: 'center' }, - { header: '최종처리일시', name: 'MDFCN_DT', width: 150, align: 'center' }, + { header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, className: 'text-center' }, + { header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, className: 'text-center' }, + { header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, className: 'text-center' }, + { header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, className: 'text-center' }, + { header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, className: 'text-center' }, + { header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' }, + { header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }, { header: '상태', name: 'CRDN_STTS_CD', hidden: true }, { header: '서손ID', name: 'LEVY_EXCL_ID', hidden: true }, { header: '소유자ID', name: 'RTPYR_ID', hidden: true }, diff --git a/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js b/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js index 03b9b595..8a10b7a5 100644 --- a/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js +++ b/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js @@ -34,7 +34,12 @@ var initGrid = (gridOptions) => { if(!gWidth){ gWidth = "0px"; } - + + var gClass = item.className; + if(!gClass){ + gClass = ""; + } + var gHidden = item.hidden; if(!gHidden){ gHidden = ""; @@ -47,19 +52,19 @@ var initGrid = (gridOptions) => { strThs += `${gHeader} `; strBodyTrs += `{${item.name}} `; - - //var gAlign = item.align; 정렬 - + }); strBodyTrs += ``; @@ -74,10 +79,4 @@ var initGrid = (gridOptions) => { tableBodyTemplate.notFound = notFound; return tableBodyTemplate; - //$("#"+gridTheadTr).append(); - - - - //스크롤이벤트 - // GRID.on('dblclick', function (props) { fnBiz.onDblClickGrid(props); }); 더블클릭 }; \ No newline at end of file