From 84bc0cb8afab8b322819e01b29a8b81a718b72b4 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 9 Jun 2023 13:37:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=A0=95=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 59 +- .../fims/biz/ens/adm/SendRqstMngSearchVO.java | 71 - .../xit/fims/biz/ens/adm/SendRqstMngVO.java | 219 --- .../adm/StatsBySignTalkByYearSearchVO.java | 38 - .../biz/ens/adm/StatsBySignTalkByYearVO.java | 105 -- .../biz/ens/adm/dao/SendRqstMngMapper.java | 18 - .../adm/dao/StatsBySignTalkByYearMapper.java | 15 - .../ens/adm/service/SendRqstMngService.java | 16 - .../service/StatsBySignTalkByYearService.java | 14 - .../service/bean/SendRqstMngServiceBean.java | 72 - .../StatsBySignTalkByYearServiceBean.java | 61 - .../ens/adm/web/SendRqstMngController.java | 304 ---- .../web/StatsBySignTalkByYearController.java | 219 --- .../xit/fims/biz/ens/cmm/EnsCmmnUtil.java | 7 - .../cokr/xit/fims/biz/ens/cmm/EnsConst.java | 10 - .../biz/ens/cmm/struct/EnsMapperStrategy.java | 51 - .../ens/cmm/struct/EnsServiceStrategy.java | 16 - .../biz/cmm/web/FrameworkCmmController.java | 3 +- .../cmm/web/XitFrameAnonymousController.java | 15 +- .../biz/cmm/web/XitFrameFileController.java | 5 +- .../biz/cmm/web/XitFramePopupController.java | 2 - .../cmm/web/XitFrameSchedulerController.java | 3 +- .../biz/cmm/web/XitLoginController.java | 3 +- .../bean/XitConectionLogMngServiceBean.java | 2 +- .../bean/XitConectionStatsMngServiceBean.java | 2 +- .../admin/web/XitAdminDbMngController.java | 3 +- .../web/XitAdminServerCmdMngController.java | 7 - .../web/XitAdminServerFileMngController.java | 9 +- .../web/XitAdminServerLogMngController.java | 10 +- .../web/XitConectionLogMngController.java | 12 +- .../web/XitConectionStatsMngController.java | 2 +- .../bean/XitLoginPolicyMngServiceBean.java | 2 +- .../auth/web/XitLoginPolicyMngController.java | 16 +- .../bean/XitBasicBbsMngServiceBean.java | 3 +- .../bean/XitBbsCreateMngServiceBean.java | 3 +- .../bean/XitBbsTmplateMngServiceBean.java | 5 +- .../service/bean/XitBbsUseMngServiceBean.java | 3 +- .../mng/bbs/web/XitBasicBbsMngController.java | 22 +- .../bbs/web/XitBbsCreateMngController.java | 17 +- .../bbs/web/XitBbsTmplateMngController.java | 19 +- .../mng/bbs/web/XitBbsUseMngController.java | 18 +- .../user/service/bean/UserMgtServiceBean.java | 3 +- .../bean/XitUserAbsntMngServiceBean.java | 3 +- .../bean/XitUserEtcOptMngServiceBean.java | 2 - .../user/web/XitUserAbsntMngController.java | 15 +- .../user/web/XitUserEtcOptMngController.java | 3 +- .../framework/core/aop/XitLoginLogAspect.java | 5 +- .../interceptor/XitAccessIntercepter.java | 2 - .../core/validation/XitBeanValidator.java | 62 - .../framework/support/util/JBeanRegistry.java | 5 +- .../support/util/ValidationError.java | 10 +- .../resources/spring/context-idgen-xit.xml | 42 +- .../resources/spring/context-validator.xml | 29 - .../validator/biz/adm/SendRqstMng.xml | 29 - .../validator/biz/sysadm/LinkInfoMng.xml | 39 - .../validator/biz/sysadm/NotiMng.xml | 63 - .../framework/cmm/answer/CmmAnsTmpl.xml | 43 - .../framework/mng/auth/XitAuthRegMng.xml | 49 - .../framework/mng/batch/XitBatchRegMng.xml | 40 - .../mng/batch/XitBatchSchduleMng.xml | 35 - .../framework/mng/bbs/XitBasicBbsMng.xml | 36 - .../framework/mng/bbs/XitBbsBasicMng.xml | 30 - .../framework/mng/bbs/XitBbsCreateMng.xml | 49 - .../framework/mng/bbs/XitBbsTmplateMng.xml | 39 - .../framework/mng/code/XitClCodeMng.xml | 42 - .../framework/mng/code/XitCmmnCodeMng.xml | 50 - .../framework/mng/code/XitDetailCodeMng.xml | 51 - .../framework/mng/code/XitZipCodeMng.xml | 64 - .../framework/mng/menu/XitMenuListMng.xml | 68 - .../framework/mng/menu/XitProgramMng.xml | 52 - .../framework/mng/menu/XitProgrmManageDtl.xml | 75 - .../mng/policy/XitLoginPolicyMng.xml | 24 - .../framework/mng/usr/XitUserRegMng.xml | 117 -- .../mng/usr/XitUserRegMngOfEditPwd.xml | 24 - .../validator/validator-rules-xit.xml | 1530 ----------------- 75 files changed, 67 insertions(+), 4144 deletions(-) delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngSearchVO.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngVO.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearSearchVO.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearVO.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/dao/SendRqstMngMapper.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/dao/StatsBySignTalkByYearMapper.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/service/SendRqstMngService.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/service/StatsBySignTalkByYearService.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/SendRqstMngServiceBean.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/StatsBySignTalkByYearServiceBean.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/web/SendRqstMngController.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/adm/web/StatsBySignTalkByYearController.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/cmm/EnsCmmnUtil.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/cmm/EnsConst.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsMapperStrategy.java delete mode 100644 src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsServiceStrategy.java delete mode 100644 src/main/java/cokr/xit/fims/framework/core/validation/XitBeanValidator.java delete mode 100644 src/main/resources/spring/context-validator.xml delete mode 100644 src/main/resources/validator/biz/adm/SendRqstMng.xml delete mode 100644 src/main/resources/validator/biz/sysadm/LinkInfoMng.xml delete mode 100644 src/main/resources/validator/biz/sysadm/NotiMng.xml delete mode 100644 src/main/resources/validator/framework/cmm/answer/CmmAnsTmpl.xml delete mode 100644 src/main/resources/validator/framework/mng/auth/XitAuthRegMng.xml delete mode 100644 src/main/resources/validator/framework/mng/batch/XitBatchRegMng.xml delete mode 100644 src/main/resources/validator/framework/mng/batch/XitBatchSchduleMng.xml delete mode 100644 src/main/resources/validator/framework/mng/bbs/XitBasicBbsMng.xml delete mode 100644 src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml delete mode 100644 src/main/resources/validator/framework/mng/bbs/XitBbsCreateMng.xml delete mode 100644 src/main/resources/validator/framework/mng/bbs/XitBbsTmplateMng.xml delete mode 100644 src/main/resources/validator/framework/mng/code/XitClCodeMng.xml delete mode 100644 src/main/resources/validator/framework/mng/code/XitCmmnCodeMng.xml delete mode 100644 src/main/resources/validator/framework/mng/code/XitDetailCodeMng.xml delete mode 100644 src/main/resources/validator/framework/mng/code/XitZipCodeMng.xml delete mode 100644 src/main/resources/validator/framework/mng/menu/XitMenuListMng.xml delete mode 100644 src/main/resources/validator/framework/mng/menu/XitProgramMng.xml delete mode 100644 src/main/resources/validator/framework/mng/menu/XitProgrmManageDtl.xml delete mode 100644 src/main/resources/validator/framework/mng/policy/XitLoginPolicyMng.xml delete mode 100644 src/main/resources/validator/framework/mng/usr/XitUserRegMng.xml delete mode 100644 src/main/resources/validator/framework/mng/usr/XitUserRegMngOfEditPwd.xml delete mode 100644 src/main/resources/validator/validator-rules-xit.xml diff --git a/pom.xml b/pom.xml index af3faf76..7f8d4360 100644 --- a/pom.xml +++ b/pom.xml @@ -76,25 +76,6 @@ - - javax.servlet - javax.servlet-api - 4.0.1 - provided - - - - javax.servlet.jsp - javax.servlet.jsp-api - 2.3.3 - provided - - - - javax.servlet - jstl - 1.2 - @@ -107,10 +88,6 @@ org.egovframe.rte.fdl.idgnr 4.1.0 - - - - @@ -143,40 +120,6 @@ - - - - local - - local - - - true - - - - - - dev - - dev - - - false - - - - - - prod - - prod - - - false - - - - + diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngSearchVO.java b/src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngSearchVO.java deleted file mode 100644 index 49db942e..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngSearchVO.java +++ /dev/null @@ -1,71 +0,0 @@ -package cokr.xit.fims.biz.ens.adm; - -import cokr.xit.fims.framework.core.XitBaseSearchVO; - -public class SendRqstMngSearchVO extends XitBaseSearchVO { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - - private String schDateOpt; //날짜검색옵션 - private String schDateFrom; //날짜검색 시작 - private String schDateTo; //날짜검색 끝 - private String schSndngProcessSttus; //발송처리상태 - private String schWord; //검색 - private String schWordOpt; //검색어 옵션 - - private String elctrnNticSndngId; - - - - public String getSchDateFrom() { - return schDateFrom; - } - public void setSchDateFrom(String schDateFrom) { - this.schDateFrom = schDateFrom; - } - public String getSchDateTo() { - return schDateTo; - } - public void setSchDateTo(String schDateTo) { - this.schDateTo = schDateTo; - } - public String getSchWord() { - return schWord; - } - public void setSchWord(String schWord) { - this.schWord = schWord; - } - public String getSchDateOpt() { - return schDateOpt; - } - public void setSchDateOpt(String schDateOpt) { - this.schDateOpt = schDateOpt; - } - public String getSchSndngProcessSttus() { - return schSndngProcessSttus; - } - public void setSchSndngProcessSttus(String schSndngProcessSttus) { - this.schSndngProcessSttus = schSndngProcessSttus; - } - public String getSchWordOpt() { - return schWordOpt; - } - public void setSchWordOpt(String schWordOpt) { - this.schWordOpt = schWordOpt; - } - public String getElctrnNticSndngId() { - return elctrnNticSndngId; - } - public void setElctrnNticSndngId(String elctrnNticSndngId) { - this.elctrnNticSndngId = elctrnNticSndngId; - } - - - - - - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngVO.java b/src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngVO.java deleted file mode 100644 index 17b46b8a..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/SendRqstMngVO.java +++ /dev/null @@ -1,219 +0,0 @@ -package cokr.xit.fims.biz.ens.adm; - -import cokr.xit.fims.framework.core.BaseVO; - -public class SendRqstMngVO extends BaseVO { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - - - private String elctrnNticSndngId; //전자 고지 발송 ID - private String nhtTmplatId; //고지서 템플릿 ID - private String sndngProcessSttus; //발송 처리 상태 - private String regDt; //접수 일시 - private String sendngTyCode; //접수 일시 - private String sndngCo; //발송 건수 - private String sndngDt; //발송 일시 - private String closDt; //마감 일시 - private String nhtNm; //통지서 이름 - private String mainCode; //코드 - private String elctrnNticSndngDetailId; //전자 고지 발송 디테일 ID - private String signguCode; //시군구 코드 - private String signguCodeNm; //시군구 코드명 - private String ihidnum; //주민등록번호 - private String cnDetail; //내용 상세 - private String mobilePageCn; //모바일 내용 상세 - private String rgtr; //작성자 - private String mdfcnDt; //수정 일자 - private String mdfr; //수정자 - - - - private String requstDt; //요청 일시 - private String inqireDt; //조회 일시 - private String readngDt; //열람 일시 - private String sndngResultCode; //발송 결과 코드 - private String errorCn; //오류내용 - - private String mmCarno; //차량번호 - private String omName; //미납자명 - - private String searchCode; //검색조건 code - private String searchCodeNm; //검색조건 code 명 - - - - - public String getElctrnNticSndngId() { - return elctrnNticSndngId; - } - public void setElctrnNticSndngId(String elctrnNticSndngId) { - this.elctrnNticSndngId = elctrnNticSndngId; - } - public String getNhtTmplatId() { - return nhtTmplatId; - } - public void setNhtTmplatId(String nhtTmplatId) { - this.nhtTmplatId = nhtTmplatId; - } - public String getRegDt() { - return regDt; - } - public void setRegDt(String regDt) { - this.regDt = regDt; - } - public String getSndngDt() { - return sndngDt; - } - public void setSndngDt(String sndngDt) { - this.sndngDt = sndngDt; - } - public String getClosDt() { - return closDt; - } - public void setClosDt(String closDt) { - this.closDt = closDt; - } - public String getNhtNm() { - return nhtNm; - } - public void setNhtNm(String nhtNm) { - this.nhtNm = nhtNm; - } - public String getMainCode() { - return mainCode; - } - public void setMainCode(String mainCode) { - this.mainCode = mainCode; - } - public String getElctrnNticSndngDetailId() { - return elctrnNticSndngDetailId; - } - public void setElctrnNticSndngDetailId(String elctrnNticSndngDetailId) { - this.elctrnNticSndngDetailId = elctrnNticSndngDetailId; - } - public String getSignguCode() { - return signguCode; - } - public void setSignguCode(String signguCode) { - this.signguCode = signguCode; - } - public String getIhidnum() { - return ihidnum; - } - public void setIhidnum(String ihidnum) { - this.ihidnum = ihidnum; - } - public String getCnDetail() { - return cnDetail; - } - public void setCnDetail(String cnDetail) { - this.cnDetail = cnDetail; - } - public String getMobilePageCn() { - return mobilePageCn; - } - public void setMobilePageCn(String mobilePageCn) { - this.mobilePageCn = mobilePageCn; - } - public String getRgtr() { - return rgtr; - } - public void setRgtr(String rgtr) { - this.rgtr = rgtr; - } - public String getMdfcnDt() { - return mdfcnDt; - } - public void setMdfcnDt(String mdfcnDt) { - this.mdfcnDt = mdfcnDt; - } - public String getMdfr() { - return mdfr; - } - public void setMdfr(String mdfr) { - this.mdfr = mdfr; - } - public String getSndngProcessSttus() { - return sndngProcessSttus; - } - public void setSndngProcessSttus(String sndngProcessSttus) { - this.sndngProcessSttus = sndngProcessSttus; - } - public String getRequstDt() { - return requstDt; - } - public void setRequstDt(String requstDt) { - this.requstDt = requstDt; - } - public String getInqireDt() { - return inqireDt; - } - public void setInqireDt(String inqireDt) { - this.inqireDt = inqireDt; - } - public String getReadngDt() { - return readngDt; - } - public void setReadngDt(String readngDt) { - this.readngDt = readngDt; - } - public String getSndngResultCode() { - return sndngResultCode; - } - public void setSndngResultCode(String sndngResultCode) { - this.sndngResultCode = sndngResultCode; - } - public String getSndngCo() { - return sndngCo; - } - public void setSndngCo(String sndngCo) { - this.sndngCo = sndngCo; - } - public String getSendngTyCode() { - return sendngTyCode; - } - public void setSendngTyCode(String sendngTyCode) { - this.sendngTyCode = sendngTyCode; - } - public String getSignguCodeNm() { - return signguCodeNm; - } - public void setSignguCodeNm(String signguCodeNm) { - this.signguCodeNm = signguCodeNm; - } - public String getErrorCn() { - return errorCn; - } - public void setErrorCn(String errorCn) { - this.errorCn = errorCn; - } - public String getMmCarno() { - return mmCarno; - } - public void setMmCarno(String mmCarno) { - this.mmCarno = mmCarno; - } - public String getOmName() { - return omName; - } - public void setOmName(String omName) { - this.omName = omName; - } - public String getSearchCode() { - return searchCode; - } - public void setSearchCode(String searchCode) { - this.searchCode = searchCode; - } - public String getSearchCodeNm() { - return searchCodeNm; - } - public void setSearchCodeNm(String searchCodeNm) { - this.searchCodeNm = searchCodeNm; - } - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearSearchVO.java b/src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearSearchVO.java deleted file mode 100644 index a9bc97ce..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearSearchVO.java +++ /dev/null @@ -1,38 +0,0 @@ -package cokr.xit.fims.biz.ens.adm; - -import cokr.xit.fims.framework.core.XitBaseSearchVO; - -public class StatsBySignTalkByYearSearchVO extends XitBaseSearchVO { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - - private String schSignguCode; //시군구 코드 - private String schDateFrom; //조회기간 from - private String schDateTo; //조회기간 to - - - - - public String getSchDateFrom() { - return schDateFrom; - } - public void setSchDateFrom(String schDateFrom) { - this.schDateFrom = schDateFrom; - } - public String getSchDateTo() { - return schDateTo; - } - public void setSchDateTo(String schDateTo) { - this.schDateTo = schDateTo; - } - public String getSchSignguCode() { - return schSignguCode; - } - public void setSchSignguCode(String schSignguCode) { - this.schSignguCode = schSignguCode; - } - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearVO.java b/src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearVO.java deleted file mode 100644 index e914b348..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/StatsBySignTalkByYearVO.java +++ /dev/null @@ -1,105 +0,0 @@ -package cokr.xit.fims.biz.ens.adm; - -import cokr.xit.fims.framework.core.BaseVO; - -public class StatsBySignTalkByYearVO extends BaseVO { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - - private String signguCode; //시군구 코드 - private String signguCodeNm; //시군구 명 - private String sndngCo; //발송 건수 - private String sndngCoSuccess; //발송 건수 성공 - private String sndngCoFail; //발송 건수 실패 - private String inqireDt; //조회 일시 - private String inqireDtCount; //조회 일시 conut - private String readngDt; //열람 일시 - private String readngDtCount; //열람 일시 count - private String sndngDt; //발송 일시 - private String nhtTmplatId; //통지서ID - private String nhtNm; //통지서명 - private String sndngYear; //연도 - - public String getSndngCo() { - return sndngCo; - } - public void setSndngCo(String sndngCo) { - this.sndngCo = sndngCo; - } - public String getInqireDt() { - return inqireDt; - } - public void setInqireDt(String inqireDt) { - this.inqireDt = inqireDt; - } - public String getReadngDt() { - return readngDt; - } - public void setReadngDt(String readngDt) { - this.readngDt = readngDt; - } - public String getInqireDtCount() { - return inqireDtCount; - } - public void setInqireDtCount(String inqireDtCount) { - this.inqireDtCount = inqireDtCount; - } - public String getReadngDtCount() { - return readngDtCount; - } - public void setReadngDtCount(String readngDtCount) { - this.readngDtCount = readngDtCount; - } - public String getSndngDt() { - return sndngDt; - } - public void setSndngDt(String sndngDt) { - this.sndngDt = sndngDt; - } - public String getSignguCode() { - return signguCode; - } - public void setSignguCode(String signguCode) { - this.signguCode = signguCode; - } - public String getSndngCoFail() { - return sndngCoFail; - } - public void setSndngCoFail(String sndngCoFail) { - this.sndngCoFail = sndngCoFail; - } - public String getSndngCoSuccess() { - return sndngCoSuccess; - } - public void setSndngCoSuccess(String sndngCoSuccess) { - this.sndngCoSuccess = sndngCoSuccess; - } - public String getSignguCodeNm() { - return signguCodeNm; - } - public void setSignguCodeNm(String signguCodeNm) { - this.signguCodeNm = signguCodeNm; - } - public String getNhtTmplatId() { - return nhtTmplatId; - } - public void setNhtTmplatId(String nhtTmplatId) { - this.nhtTmplatId = nhtTmplatId; - } - public String getNhtNm() { - return nhtNm; - } - public void setNhtNm(String nhtNm) { - this.nhtNm = nhtNm; - } - public String getSndngYear() { - return sndngYear; - } - public void setSndngYear(String sndngYear) { - this.sndngYear = sndngYear; - } - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/dao/SendRqstMngMapper.java b/src/main/java/cokr/xit/fims/biz/ens/adm/dao/SendRqstMngMapper.java deleted file mode 100644 index 856e5f4b..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/dao/SendRqstMngMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.dao; - -import java.sql.SQLException; -import java.util.List; - -import org.egovframe.rte.psl.dataaccess.mapper.Mapper; -import cokr.xit.fims.biz.ens.adm.SendRqstMngVO; -import cokr.xit.fims.biz.ens.adm.SendRqstMngSearchVO; -import cokr.xit.fims.biz.ens.cmm.struct.EnsMapperStrategy; - -@Mapper -public interface SendRqstMngMapper extends EnsMapperStrategy{ - - public List findViewList(SendRqstMngSearchVO searchVO) throws SQLException; - - public List findSndngProcessSttus(); - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/dao/StatsBySignTalkByYearMapper.java b/src/main/java/cokr/xit/fims/biz/ens/adm/dao/StatsBySignTalkByYearMapper.java deleted file mode 100644 index 81bf8bfe..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/dao/StatsBySignTalkByYearMapper.java +++ /dev/null @@ -1,15 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.dao; - -import java.util.List; - -import org.egovframe.rte.psl.dataaccess.mapper.Mapper; -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearSearchVO; -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearVO; -import cokr.xit.fims.biz.ens.cmm.struct.EnsMapperStrategy; - -@Mapper -public interface StatsBySignTalkByYearMapper extends EnsMapperStrategy{ - - public List findSignguCode(); - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/service/SendRqstMngService.java b/src/main/java/cokr/xit/fims/biz/ens/adm/service/SendRqstMngService.java deleted file mode 100644 index 2043a379..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/service/SendRqstMngService.java +++ /dev/null @@ -1,16 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.service; - -import java.util.List; - -import cokr.xit.fims.biz.ens.adm.SendRqstMngVO; -import cokr.xit.fims.biz.ens.adm.SendRqstMngSearchVO; -import cokr.xit.fims.biz.ens.cmm.struct.EnsServiceStrategy; - - - -public interface SendRqstMngService extends EnsServiceStrategy{ - - public List findViewList(SendRqstMngSearchVO searchVO); - - public List findSndngProcessSttus(); -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/service/StatsBySignTalkByYearService.java b/src/main/java/cokr/xit/fims/biz/ens/adm/service/StatsBySignTalkByYearService.java deleted file mode 100644 index 5286d038..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/service/StatsBySignTalkByYearService.java +++ /dev/null @@ -1,14 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.service; - -import java.util.List; - -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearSearchVO; -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearVO; -import cokr.xit.fims.biz.ens.cmm.struct.EnsServiceStrategy; - - - -public interface StatsBySignTalkByYearService extends EnsServiceStrategy{ - - public List findSignguCode(); -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/SendRqstMngServiceBean.java b/src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/SendRqstMngServiceBean.java deleted file mode 100644 index 906f623f..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/SendRqstMngServiceBean.java +++ /dev/null @@ -1,72 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.service.bean; - -import java.sql.SQLException; -import java.util.List; - -import cokr.xit.foundation.component.AbstractServiceBean; -import org.springframework.stereotype.Service; - -import cokr.xit.fims.biz.ens.adm.SendRqstMngSearchVO; -import cokr.xit.fims.biz.ens.adm.SendRqstMngVO; -import cokr.xit.fims.biz.ens.adm.dao.SendRqstMngMapper; -import cokr.xit.fims.biz.ens.adm.service.SendRqstMngService; -import lombok.AllArgsConstructor; -import lombok.extern.slf4j.Slf4j; - -@Slf4j -@AllArgsConstructor -@Service -public class SendRqstMngServiceBean extends AbstractServiceBean implements SendRqstMngService { - - private final SendRqstMngMapper sendRqstMngMapper; - - @Override - public List findList(SendRqstMngSearchVO searchVO) { - try { - return sendRqstMngMapper.findList(searchVO); - } catch (SQLException e) { - throw new RuntimeException("발송예약관리 다건 조회 FAIL::", e); - } - } - - @Override - public SendRqstMngVO findView(SendRqstMngVO vo) { - try { - return sendRqstMngMapper.findView(vo); - } catch (SQLException e) { - throw new RuntimeException("발송예약관리 단건 조회 FAIL::", e); - } - } - - @Override - public List findViewList(SendRqstMngSearchVO searchVO) { - - try { - return sendRqstMngMapper.findViewList(searchVO); - } catch (SQLException e) { - throw new RuntimeException("발송예약관리 팝업 다건 조회 FAIL::", e); - } - } - - @Override - public void addProc(SendRqstMngVO vo) { - sendRqstMngMapper.addProc(vo); - } - - @Override - public void modifyProc(SendRqstMngVO vo) { - sendRqstMngMapper.modifyProc(vo); - } - - @Override - public void removeProc(SendRqstMngVO vo) { - sendRqstMngMapper.removeProc(vo); - } - - @Override - public List findSndngProcessSttus() { - return sendRqstMngMapper.findSndngProcessSttus(); - } - - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/StatsBySignTalkByYearServiceBean.java b/src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/StatsBySignTalkByYearServiceBean.java deleted file mode 100644 index 6b48b8b6..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/service/bean/StatsBySignTalkByYearServiceBean.java +++ /dev/null @@ -1,61 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.service.bean; - -import java.sql.SQLException; -import java.util.List; - -import javax.annotation.Resource; - -import cokr.xit.foundation.component.AbstractServiceBean; -import org.springframework.stereotype.Service; - -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearSearchVO; -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearVO; -import cokr.xit.fims.biz.ens.adm.dao.StatsBySignTalkByYearMapper; -import cokr.xit.fims.biz.ens.adm.service.StatsBySignTalkByYearService; - -@Service -public class StatsBySignTalkByYearServiceBean extends AbstractServiceBean implements StatsBySignTalkByYearService { - - @Resource - private StatsBySignTalkByYearMapper statsBySignTalkByYearMapper; - - - @Override - public List findList(StatsBySignTalkByYearSearchVO searchVO) { - try { - return statsBySignTalkByYearMapper.findList(searchVO); - } catch (SQLException e) { - throw new RuntimeException("인증톡 연도별 통계 다건 조회 FAIL::", e); - } - } - - @Override - public StatsBySignTalkByYearVO findView(StatsBySignTalkByYearVO vo) { - try { - return statsBySignTalkByYearMapper.findView(vo); - } catch (SQLException e) { - throw new RuntimeException("인증톡 연도별 통계 단건 조회 FAIL::", e); - } - } - - @Override - public void addProc(StatsBySignTalkByYearVO vo) { - statsBySignTalkByYearMapper.addProc(vo); - } - - @Override - public void modifyProc(StatsBySignTalkByYearVO vo) { - statsBySignTalkByYearMapper.modifyProc(vo); - } - - @Override - public void removeProc(StatsBySignTalkByYearVO vo) { - statsBySignTalkByYearMapper.removeProc(vo); - } - - @Override - public List findSignguCode() { - return statsBySignTalkByYearMapper.findSignguCode(); - } - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/web/SendRqstMngController.java b/src/main/java/cokr/xit/fims/biz/ens/adm/web/SendRqstMngController.java deleted file mode 100644 index fae6f4c8..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/web/SendRqstMngController.java +++ /dev/null @@ -1,304 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.web; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; - -import cokr.xit.foundation.web.AbstractController; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.AccessDeniedException; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; -import cokr.xit.fims.biz.ens.adm.SendRqstMngSearchVO; -import cokr.xit.fims.biz.ens.adm.SendRqstMngVO; -import cokr.xit.fims.biz.ens.adm.service.SendRqstMngService; -import cokr.xit.fims.framework.core.constants.FrameworkConstants; -import org.springframework.context.support.ReloadableResourceBundleMessageSource; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; -import lombok.extern.slf4j.Slf4j; -import cokr.xit.fims.biz.ens.cmm.EnsConst; - -/** - * - *
    - *
  • 업무 그룹명: 발송예약관리
  • - *
  • 설 명: 발송 요청 자료들을 관리 한다.
  • - *
  • 작성일: 2021. 9. 16. 오후 6:51:43 - *
- * - * @author 박민규 - * - */ -@Slf4j -@Controller -@RequestMapping(name = "", value = "/adm/send/rqst/mng/") -public class SendRqstMngController extends AbstractController { - - @Resource(name = "messageSource") - private ReloadableResourceBundleMessageSource messageSource; - - @Autowired - private SendRqstMngService sendRqstMngService; - - @Autowired - private XitBeanValidator xitBeanValidator; - - /** - *
메소드 설명: 메인 페이지
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 16. - */ - @GetMapping(name = "", value = "main") - public String main(HttpServletRequest req, Model model) { - List searchCodeList = sendRqstMngService.findSndngProcessSttus(); - model.addAttribute("searchCodeList", searchCodeList); - return EnsConst.JSP_BASE_PATH - +"adm/SendRqstMng" - +"_"+new Object() {}.getClass().getEnclosingMethod().getName() //메소드명 - ; - } - - - - /** - *
메소드 설명: 자료 검색
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 16. - */ - @GetMapping(name = "", value = "finds") - public String finds(HttpServletRequest req, Model model, SendRqstMngSearchVO searchVO) { - - /** paging */ - PaginationInfo paginationInfo = new PaginationInfo(); - paginationInfo.setCurrentPageNo(searchVO.getPageNum()>-1?searchVO.getPageNum():searchVO.getPageIndex()); - paginationInfo.setRecordCountPerPage(searchVO.getFetchSize()>-1?searchVO.getFetchSize():searchVO.getPageUnit()); - paginationInfo.setPageSize(searchVO.getPageSize()); - searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); - searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); - searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); - - try { - /** - * 조회 - */ - List list = sendRqstMngService.findList(searchVO); - - final int totCnt = list.size()>0 ? list.get(0).getTotCnt() : list.size(); - paginationInfo.setTotalRecordCount(totCnt); - /** - * 반환값 설정 - */ - /* *************************** - * tui Grid Response Set - *************************** */ - model.addAttribute("result", true); //[tui Grid] result - model.addAttribute("message", "정상적으로 조회 되었습니다."); //[tui Grid] result message - Map data = new HashMap(); - data.put("contents", list); //[tui Grid] data-contents - Map pagination = new HashMap(); - pagination.put("pageNum", searchVO.getPageNum()); - pagination.put("totalSize", totCnt); - data.put("pagination", pagination); //[tui Grid] data-paging - model.addAttribute("data", data); //[tui Grid] data - /* *************************** - * //tui Grid Response Set - *************************** */ - } catch (AccessDeniedException e) { - /** - * 반환값 설정 - */ - //tui Grid Response Set - model.addAttribute("result", false); //[tui Grid] result - model.addAttribute("message", "요청에 대한 권한이 없습니다."); //[tui Grid] result message - } catch (Exception e) { - /** - * 반환값 설정 - */ - //tui Grid Response Set - model.addAttribute("result", false); //[tui Grid] result - model.addAttribute("message", "조회에 실패하였습니다."); //[tui Grid] result message - } - - return FrameworkConstants.JSON_VIEW; - } - - - /** - *
메소드 설명: 자료 단건 검색 팝업 페이지
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 16. - */ - @GetMapping(name = "", value = "detail") - public String detail(HttpServletRequest req, Model model, SendRqstMngVO sendRqstMngVO) { - - String elctrn_ntic_sndng_id = req.getParameter("selectedId"); - sendRqstMngVO.setElctrnNticSndngId(elctrn_ntic_sndng_id); - - //단건조회 서비스호출 - sendRqstMngVO = sendRqstMngService.findView(sendRqstMngVO); - - model.addAttribute("contents", sendRqstMngVO); - log.info("========"+sendRqstMngVO.getNhtNm()); - - - return EnsConst.JSP_BASE_PATH - +"adm/SendRqstMng" - +"_"+new Object() {}.getClass().getEnclosingMethod().getName() //메소드명 - ; - - } - - /** - *
메소드 설명: 자료 단건 검색
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 16. - */ - @GetMapping(name = "", value = "find") - public String find(HttpServletRequest req, Model model, SendRqstMngSearchVO searchVO, SendRqstMngVO sendRqstMngVO) { - -// String elctrn_ntic_sndng_id = req.getParameter("elctrn_ntic_sndng_id"); -// sendRqstMngVO.setElctrn_ntic_sndng_id(elctrn_ntic_sndng_id); - - /** paging */ - - PaginationInfo paginationInfo = new PaginationInfo(); - paginationInfo.setCurrentPageNo(searchVO.getPageNum()>-1?searchVO.getPageNum():searchVO.getPageIndex()); - paginationInfo.setRecordCountPerPage(searchVO.getFetchSize()>-1?searchVO.getFetchSize():searchVO.getPageUnit()); - paginationInfo.setPageSize(searchVO.getPageSize()); - searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); - searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); - searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); - - try { - - //sendRqstMngVO.setElctrn_ntic_sndng_id(req.getParameter("elctrn_ntic_sndng_id")); - - /** - * 조회 - */ -// List list = sendRqstMngService.findViewList(sendRqstMngVO); - List list = sendRqstMngService.findViewList(searchVO); - - final int totCnt = list.size()>0 ? list.get(0).getTotCnt() : list.size(); - paginationInfo.setTotalRecordCount(totCnt); - /** - * 반환값 설정 - */ - /* *************************** - * tui Grid Response Set - *************************** */ - model.addAttribute("result", true); //[tui Grid] result - model.addAttribute("message", "정상적으로 조회 되었습니다."); //[tui Grid] result message - Map data = new HashMap(); - data.put("contents", list); //[tui Grid] data-contents - Map pagination = new HashMap(); - pagination.put("pageNum", searchVO.getPageNum()); - pagination.put("totalSize", totCnt); - data.put("pagination", pagination); //[tui Grid] data-paging - model.addAttribute("data", data); //[tui Grid] data - /* *************************** - * //tui Grid Response Set - *************************** */ - } catch (AccessDeniedException e) { - /** - * 반환값 설정 - */ - //tui Grid Response Set - model.addAttribute("result", false); //[tui Grid] result - model.addAttribute("message", "요청에 대한 권한이 없습니다."); //[tui Grid] result message - } catch (Exception e) { - /** - * 반환값 설정 - */ - //tui Grid Response Set - model.addAttribute("result", false); //[tui Grid] result - model.addAttribute("message", "조회에 실패하였습니다."); //[tui Grid] result message - } - - - return FrameworkConstants.JSON_VIEW; - - } - - - /** - *
메소드 설명: 등록 처리
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 16. - */ - @PostMapping(name = "", value = "proc") - public String insert(HttpServletRequest req, Model model) { - - - - - return FrameworkConstants.JSON_VIEW; - } - - - /** - *
메소드 설명: 수정 처리
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 16. - */ - @PutMapping(name = "", value = "proc") - public String update(@RequestBody SendRqstMngVO vo, HttpServletRequest req, Model model, SendRqstMngVO sendRqstMngVO, BindingResult bindingResult) { - - String elctrn_ntic_sndng_id = req.getParameter("selectedId"); - sendRqstMngVO.setElctrnNticSndngId(elctrn_ntic_sndng_id); - - /** - * 유효성 검증 - */ - xitBeanValidator.validate(vo, bindingResult); - if (bindingResult.hasErrors()) { //유효성검증에 실패 했을 경우.. - model.addAttribute("result", "fail"); - model.addAttribute("message", "생성에 실패하였습니다."); - model.addAttribute("errors", bindingResult.getFieldErrors()); - return FrameworkConstants.JSON_VIEW; - } - - - /** - * 수정 서비스 호출 - */ - try { - sendRqstMngService.modifyProc(vo); - model.addAttribute("result", "success"); - model.addAttribute("message", "정상적으로 등록 되었습니다."); - } catch (Exception e) { - model.addAttribute("result", "fail"); - model.addAttribute("message", "생성에 실패하였습니다."); - model.addAttribute("errors", e.getMessage()); - } - - - - return FrameworkConstants.JSON_VIEW; - } - - - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/adm/web/StatsBySignTalkByYearController.java b/src/main/java/cokr/xit/fims/biz/ens/adm/web/StatsBySignTalkByYearController.java deleted file mode 100644 index 8abbc910..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/adm/web/StatsBySignTalkByYearController.java +++ /dev/null @@ -1,219 +0,0 @@ -package cokr.xit.fims.biz.ens.adm.web; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import cokr.xit.foundation.web.AbstractController; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearSearchVO; -import cokr.xit.fims.biz.ens.adm.StatsBySignTalkByYearVO; -import cokr.xit.fims.biz.ens.adm.service.StatsBySignTalkByYearService; -import cokr.xit.fims.biz.ens.cmm.EnsConst; -import cokr.xit.fims.framework.core.constants.FrameworkConstants; -import org.springframework.context.support.ReloadableResourceBundleMessageSource; -import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import lombok.AllArgsConstructor; -import lombok.extern.slf4j.Slf4j; - -/** - * - *
    - *
  • 업무 그룹명: 중계사업자별 연계관
  • - *
  • 설 명: 중계사업자별 연계를 관리 한다.
  • - *
  • 작성일: 2021. 9. 17. 오후 6:51:43 - *
- * - * @author 최정민 - * - */ -@Slf4j -@AllArgsConstructor -@Controller -@RequestMapping(name = "", value = "/adm/stats/by/sign/talk/by/year/") -public class StatsBySignTalkByYearController extends AbstractController { - - - private final ReloadableResourceBundleMessageSource messageSource; - - private final StatsBySignTalkByYearService statsBySignTalkByYearService; - - /** - *
메소드 설명: 메인 페이지
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 최정민 - * @date: 2021. 9. 27. - */ - @GetMapping(name = "", value = "main") - public String main(HttpServletRequest req, Model model) { - List searchSignguCodeList = statsBySignTalkByYearService.findSignguCode(); - model.addAttribute("searchSignguCodeList", searchSignguCodeList); - return EnsConst.JSP_BASE_PATH - +"adm/StatsBySignTalkByYear" - +"_"+new Object() {}.getClass().getEnclosingMethod().getName() //메소드명 - ; - } - - /** - *
메소드 설명: 자료 검색
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 최정민 - * @date: 2021. 9. 27. - */ - @GetMapping(name = "", value = "finds") - public String finds(HttpServletRequest req, Model model, StatsBySignTalkByYearSearchVO searchVO) { - - - /** paging */ - PaginationInfo paginationInfo = new PaginationInfo(); - paginationInfo.setCurrentPageNo(searchVO.getPageNum()>-1?searchVO.getPageNum():searchVO.getPageIndex()); - paginationInfo.setRecordCountPerPage(searchVO.getFetchSize()>-1?searchVO.getFetchSize():searchVO.getPageUnit()); - paginationInfo.setPageSize(searchVO.getPageSize()); - searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); - searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); - searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); - - try { - /** - * 조회 - */ - List list = statsBySignTalkByYearService.findList(searchVO); - final int totCnt = list.size()>0 ? list.get(0).getTotCnt() : list.size(); - paginationInfo.setTotalRecordCount(totCnt); - /** - * 반환값 설정 - */ - /* *************************** - * tui Grid Response Set - *************************** */ - model.addAttribute("result", true); //[tui Grid] result - model.addAttribute("message", "정상적으로 조회 되었습니다."); //[tui Grid] result message - Map data = new HashMap(); - data.put("contents", list); //[tui Grid] data-contents - Map pagination = new HashMap(); - pagination.put("pageNum", searchVO.getPageNum()); - pagination.put("totalSize", totCnt); - data.put("pagination", pagination); //[tui Grid] data-paging - model.addAttribute("data", data); //[tui Grid] data - /* *************************** - * //tui Grid Response Set - *************************** */ - } catch (Exception e) { - /** - * 반환값 설정 - */ - //tui Grid Response Set - model.addAttribute("result", false); //[tui Grid] result - model.addAttribute("message", "조회에 실패하였습니다."); //[tui Grid] result message - } - - return FrameworkConstants.JSON_VIEW; - } - - - /** - *
메소드 설명: 자료 단건 검색
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 최정민 - * @date: 2021. 9. 27. - */ - @GetMapping(name = "", value = "find") - public String find(HttpServletRequest req, Model model, StatsBySignTalkByYearSearchVO searchVO) { - return FrameworkConstants.JSON_VIEW; - } - - - /** - *
메소드 설명: 등록 처리
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 최정민 - * @date: 2021. 9. 27. - */ - @PostMapping(name = "", value = "proc") - public String insert(HttpServletRequest req, Model model) { - - - return FrameworkConstants.JSON_VIEW; - } - - - /** - *
메소드 설명: 수정 처리
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 최정민 - * @date: 2021. 9. 27. - */ - @PutMapping(name = "", value = "proc") - public String update(HttpServletRequest req, Model model) { - - - return FrameworkConstants.JSON_VIEW; - } - - - /** - *
메소드 설명: 삭제 처리
- * @param req - * @return String 요청처리 후 응답객체 - * @author: 최정민 - * @date: 2021. 9. 27. - */ - @DeleteMapping(name = "", value = "proc") - public String delete(HttpServletRequest req, Model model) { - - - return FrameworkConstants.JSON_VIEW; - } - - /** - *
메소드 설명: 엑셀 저장
- * @param request HttpServletRequest - * @param response HttpServletResponse - * @author: 최정민 - * @throws Exception - * @date: 2021. 10. 14. - */ - @GetMapping(name = "", value="excel") - public String excel(HttpServletRequest request, HttpServletResponse response, ModelMap model, StatsBySignTalkByYearSearchVO searchVO) throws Exception { - response.setHeader("Content-disposition", "attachment; filename=" + XitCmmnUtil.getFileNameForDownload(request, "엑셀파일 저장.xlsx")); - - StringBuffer columns = new StringBuffer(); //jsonArray 포맷 String으로 작성 - columns.append("[") - .append("{\"title\" : \"기관명\", \"name\" : \"signgu_code_nm\"}") - .append(",{\"title\" : \"통지서명\", \"name\" : \"nht_nm\"}") - .append(",{\"title\" : \"연도\", \"name\" : \"sndng_year\"}") - .append(",{\"title\" : \"발송건수\", \"name\" : \"sndng_co\"}") - .append(",{\"title\" : \"발송성공\", \"name\" : \"sndng_co_success\"}") - .append(",{\"title\" : \"열람\", \"name\" : \"readng_dt_count\"}") - .append(",{\"title\" : \"발송실패\", \"name\" : \"sndng_co_fail\"}") - .append("]"); - - List list = statsBySignTalkByYearService.findList(searchVO); //contents - - - log.debug("EXCEL LIST : " + list); - - model.put("header", columns.toString()); - model.put("contents", list); - - return "excelView"; - } - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/cmm/EnsCmmnUtil.java b/src/main/java/cokr/xit/fims/biz/ens/cmm/EnsCmmnUtil.java deleted file mode 100644 index d078409a..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/cmm/EnsCmmnUtil.java +++ /dev/null @@ -1,7 +0,0 @@ -package cokr.xit.fims.biz.ens.cmm; - -import cokr.xit.fims.framework.core.utils.XitCmmnUtil; - -public class EnsCmmnUtil extends XitCmmnUtil{ - -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/cmm/EnsConst.java b/src/main/java/cokr/xit/fims/biz/ens/cmm/EnsConst.java deleted file mode 100644 index ae524ee7..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/cmm/EnsConst.java +++ /dev/null @@ -1,10 +0,0 @@ -package cokr.xit.fims.biz.ens.cmm; - - -public class EnsConst { - - /** - * JSP파일 BASE PATH - */ - public static final String JSP_BASE_PATH = "/fims/biz/"; -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsMapperStrategy.java b/src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsMapperStrategy.java deleted file mode 100644 index 5beca1be..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsMapperStrategy.java +++ /dev/null @@ -1,51 +0,0 @@ -package cokr.xit.fims.biz.ens.cmm.struct; - -import java.sql.SQLException; -import java.util.List; - -public interface EnsMapperStrategy { - - /** - *
메소드 설명: 다건 조회
- * @param searchVO - * @return - * @throws SQLException List 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 17. - */ - public List findList(P searchVO) throws SQLException; - - /** - *
메소드 설명: 단건 조회
- * @param searchVO - * @return - * @throws SQLException T 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 17. - */ - public T findView(T vo) throws SQLException; - - /** - *
메소드 설명: 등록
- * @param vo void 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 17. - */ - public void addProc(T vo); - - /** - *
메소드 설명: 수정
- * @param vo void 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 17. - */ - public void modifyProc(T vo); - - /** - *
메소드 설명: 삭제
- * @param vo void 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2021. 9. 17. - */ - public void removeProc(T vo); -} diff --git a/src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsServiceStrategy.java b/src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsServiceStrategy.java deleted file mode 100644 index e8b872b7..00000000 --- a/src/main/java/cokr/xit/fims/biz/ens/cmm/struct/EnsServiceStrategy.java +++ /dev/null @@ -1,16 +0,0 @@ -package cokr.xit.fims.biz.ens.cmm.struct; - -import java.util.List; - -public interface EnsServiceStrategy { - - public List findList(P searchVO); - - public T findView(T vo); - - public void addProc(T vo); - - public void modifyProc(T vo); - - public void removeProc(T vo); -} diff --git a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/FrameworkCmmController.java b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/FrameworkCmmController.java index 3ecee6d6..58c74f38 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/FrameworkCmmController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/FrameworkCmmController.java @@ -32,8 +32,7 @@ public class FrameworkCmmController extends AbstractController { private XitFramePopupService xitFramePopupService; @Resource private cokr.xit.fims.framework.biz.cmm.service.XitFrameUnitService XitFrameUnitService; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + private int PAGE_UNIT = 10; diff --git a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameAnonymousController.java b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameAnonymousController.java index ac9a04a0..3b3aabc4 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameAnonymousController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameAnonymousController.java @@ -11,7 +11,7 @@ import cokr.xit.fims.framework.core.constants.FrameworkConstants; import cokr.xit.fims.framework.core.constants.FrameworkConstants.USER_SE; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -50,10 +50,8 @@ public class XitFrameAnonymousController extends AbstractController { private UserMgtService xitUserRegMngService; @Resource private XitFrameUnitService xitFrameUnitService; - @Autowired - private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + + private String MEMBER_STATUS ="A"; @@ -232,12 +230,7 @@ public class XitFrameAnonymousController extends AbstractController { case USR: //업무사용자 sLocationUrl = "forward:/_anonymous_/login/UserReg_Forms_USR.do"; - /** - * 유효성 확인 - */ - //2020.11.24. 주석처리 - beanValidator.validate(userManageVO, bindingResult); -// beanValidator.validate("userManageVO", userManageVO, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; } diff --git a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameFileController.java b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameFileController.java index 162ca1a1..445b3b6b 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameFileController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameFileController.java @@ -43,10 +43,7 @@ public class XitFrameFileController extends AbstractController { private XitFrameFileService xitFrameFileService; @Resource private cokr.xit.fims.framework.biz.cmm.service.XitFrameUnitService XitFrameUnitService; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; - - + /** *
메소드 설명: 첨부파일 목록
diff --git a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFramePopupController.java b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFramePopupController.java index 6843234d..b3af46ef 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFramePopupController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFramePopupController.java @@ -32,8 +32,6 @@ public class XitFramePopupController extends AbstractController { private XitFramePopupService xitFramePopupService; @Resource private cokr.xit.fims.framework.biz.cmm.service.XitFrameUnitService XitFrameUnitService; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; private int PAGE_UNIT = 10; diff --git a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameSchedulerController.java b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameSchedulerController.java index 00457e81..cf41d0b2 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameSchedulerController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitFrameSchedulerController.java @@ -29,8 +29,7 @@ public class XitFrameSchedulerController extends AbstractController { private XitFrameSchedulerService xitFrameSchedulerService; @Resource private XitFrameUnitService xitFrameUnitService; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + /** diff --git a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitLoginController.java b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitLoginController.java index bfb9f73b..4b46b962 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitLoginController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/cmm/web/XitLoginController.java @@ -47,8 +47,7 @@ public class XitLoginController extends AbstractController { private XitLoginService xitLoginService; @Autowired private XitFrameCrudService xitFrameCrudService; - @Autowired - private ReloadableResourceBundleMessageSource messageSource; + private String LOGIN_PAGE ="framework/biz/login/XitLoginUsr"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionLogMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionLogMngServiceBean.java index 27397ab7..8fe0eed6 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionLogMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionLogMngServiceBean.java @@ -20,7 +20,7 @@ public class XitConectionLogMngServiceBean extends AbstractServiceBean implement private final XitConectionLogMngMapper xitConectionLogMngMapper; private final XitFrameCrudService xitFrameCrudService; - private final ReloadableResourceBundleMessageSource messageSource; + @Override public List findList(XitConectionLogMngSearchVO searchVO) { diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionStatsMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionStatsMngServiceBean.java index 9c03b438..b4447014 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionStatsMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/service/bean/XitConectionStatsMngServiceBean.java @@ -17,7 +17,7 @@ import java.util.List; public class XitConectionStatsMngServiceBean extends AbstractServiceBean implements XitConectionStatsMngService{ private final XitConectionStatsMngMapper xitConectionStatsMngMapper; - private final ReloadableResourceBundleMessageSource messageSource; + @Override public List findList(XitConectionStatsMngSearchVO searchVO) { diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminDbMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminDbMngController.java index 57cb7744..c6bf8cbb 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminDbMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminDbMngController.java @@ -43,8 +43,7 @@ public class XitAdminDbMngController extends AbstractController { @Resource private XitAdminDbMngService xitAdminDbMngService; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + private final String SALTKEY = "U2FsdGVkX19FBBXlVS6d0Ga56ELuRsy"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerCmdMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerCmdMngController.java index b0a739c0..a7dfd7fe 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerCmdMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerCmdMngController.java @@ -32,13 +32,6 @@ import java.io.Writer; @RequestMapping(name = "", value = "/framework/biz/mng/admin/") public class XitAdminServerCmdMngController extends AbstractController { -// @Resource -// private XitAdminServerCmdMngService xitAdminServerCmdMngService; -// @Autowired -// private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; - /** diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerFileMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerFileMngController.java index cd766864..e0cd06c0 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerFileMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerFileMngController.java @@ -41,14 +41,7 @@ import java.util.Map; @RequestMapping(name = "", value = "/framework/biz/mng/admin/") public class XitAdminServerFileMngController extends AbstractController { -// @Resource -// private XitAdminServerFileMngService xitAdminServerFileMngService; -// @Autowired -// private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; - - + diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerLogMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerLogMngController.java index 3e610e71..bbd7fdd0 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerLogMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitAdminServerLogMngController.java @@ -42,15 +42,7 @@ import java.util.Map; @RequestMapping(name = "", value = "/framework/biz/mng/admin/") public class XitAdminServerLogMngController extends AbstractController { -// @Resource -// private XitAdminServerLogMngService xitAdminServerLogMngService; -// @Autowired -// private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; - - - + diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionLogMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionLogMngController.java index 9d875a72..0d474cae 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionLogMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionLogMngController.java @@ -9,7 +9,7 @@ import cokr.xit.fims.framework.biz.mng.admin.service.XitConectionLogMngService; import cokr.xit.fims.framework.core.constants.FrameworkConstants; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import lombok.AllArgsConstructor; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; @@ -45,8 +45,8 @@ public class XitConectionLogMngController extends AbstractController { private final XitConectionLogMngService xitConectionLogMngService; private final XitFrameCodeService xitFrameCodeService; - private final XitBeanValidator beanValidator; - private final ReloadableResourceBundleMessageSource messageSource; + + /** @@ -202,8 +202,7 @@ public class XitConectionLogMngController extends AbstractController { String message = null; switch (cmd) { case "insert": //등록 - //유효성 확인 - beanValidator.validate(vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/admin/ConectionLogMng_input.do"; @@ -227,8 +226,7 @@ public class XitConectionLogMngController extends AbstractController { // break; case "update": //수정 - //유효성 확인 - beanValidator.validate(vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/admin/ConectionLogMng_edit.do"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionStatsMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionStatsMngController.java index 61e76f17..976bcd52 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionStatsMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/admin/web/XitConectionStatsMngController.java @@ -34,7 +34,7 @@ public class XitConectionStatsMngController extends AbstractController { private final XitConectionStatsMngService xitConectionStatsMngService; private final XitFrameCodeService xitFrameCodeService; - private final ReloadableResourceBundleMessageSource messageSource; + /** diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/auth/service/bean/XitLoginPolicyMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/auth/service/bean/XitLoginPolicyMngServiceBean.java index 76ce8f40..0bd03d25 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/auth/service/bean/XitLoginPolicyMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/auth/service/bean/XitLoginPolicyMngServiceBean.java @@ -20,7 +20,7 @@ public class XitLoginPolicyMngServiceBean extends AbstractServiceBean implements private final XitLoginPolicyMngMapper xitLoginPolicyMngMapper; private final XitFrameCrudService xitFrameCrudService; - private final ReloadableResourceBundleMessageSource messageSource; + @Override public List findList(XitLoginPolicyMngSearchVO searchVO) { diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/auth/web/XitLoginPolicyMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/auth/web/XitLoginPolicyMngController.java index c5c008f0..c2534ce6 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/auth/web/XitLoginPolicyMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/auth/web/XitLoginPolicyMngController.java @@ -8,7 +8,7 @@ import cokr.xit.fims.framework.biz.mng.auth.service.XitLoginPolicyMngService; import cokr.xit.fims.framework.core.constants.FrameworkConstants; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import lombok.AllArgsConstructor; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; @@ -43,8 +43,8 @@ import java.util.Map; public class XitLoginPolicyMngController extends AbstractController { private final XitLoginPolicyMngService xitLoginPolicyMngService; - private final XitBeanValidator beanValidator; - private final ReloadableResourceBundleMessageSource messageSource; + + /** @@ -210,10 +210,7 @@ public class XitLoginPolicyMngController extends AbstractController { String message = null; switch (cmd) { case "insert": //등록 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("loginPolicy", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do"; @@ -240,10 +237,7 @@ public class XitLoginPolicyMngController extends AbstractController { // break; case "update": //수정 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("loginPolicy", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBasicBbsMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBasicBbsMngServiceBean.java index 95a3dfa1..45fb64e2 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBasicBbsMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBasicBbsMngServiceBean.java @@ -27,8 +27,7 @@ public class XitBasicBbsMngServiceBean extends AbstractServiceBean implements Xi private XitFrameCrudService xitFrameCrudService; @Resource private XitFrameUnitService xitFrameUnitService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; + @Override public List findList(XitBasicBbsMngSearchVO searchVO) { diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsCreateMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsCreateMngServiceBean.java index 4d1d0411..9d37097c 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsCreateMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsCreateMngServiceBean.java @@ -26,8 +26,7 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X private XitBbsCreateMngMapper XitBbsCreateMngMapper; @Resource private XitFrameCrudService xitFrameCrudService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; + @Autowired @Qualifier("bbsIdGnrService") private EgovIdGnrService bbsIdGnrService; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsTmplateMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsTmplateMngServiceBean.java index b8be6891..9d51ba05 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsTmplateMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsTmplateMngServiceBean.java @@ -25,9 +25,8 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements private XitBbsTmplateMngMapper xitBbsTmplateMngMapper; @Resource private XitFrameCrudService xitFrameCrudService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; - @Autowired + + @Qualifier("xitTmplatIdGnrService") private EgovIdGnrService xitTmplatIdGnrService; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsUseMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsUseMngServiceBean.java index 95b5d1a6..5617f7ae 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsUseMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/service/bean/XitBbsUseMngServiceBean.java @@ -22,8 +22,7 @@ public class XitBbsUseMngServiceBean extends AbstractServiceBean implements XitB private XitBbsUseMngMapper xitBbsUseMngMapper; @Resource private XitFrameCrudService xitFrameCrudService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; + @Override public List findList(XitBbsUseMngSearchVO searchVO) { diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBasicBbsMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBasicBbsMngController.java index 567026f1..cac96a84 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBasicBbsMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBasicBbsMngController.java @@ -19,7 +19,6 @@ import cokr.xit.fims.framework.core.utils.XitCmmnUtil; import cokr.xit.fims.framework.core.utils.attachfile.XitAttachFileOptionVO; import cokr.xit.fims.framework.core.utils.attachfile.XitAttachFileUtil; import cokr.xit.fims.framework.core.utils.attachfile.XitAttachFileVO; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; import cokr.xit.fims.framework.support.util.AjaxUtils; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; @@ -60,10 +59,8 @@ public class XitBasicBbsMngController extends AbstractController { private XitBasicBbsMngService xitBasicBbsMngService; @Resource private XitFrameCodeService xitFrameCodeService; - @Autowired - private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + + @Resource private XitBbsCreateMngService xitBbsCreateMngService; @Resource @@ -451,10 +448,7 @@ public class XitBasicBbsMngController extends AbstractController { XitAttachFileRespVO attachFileVO = null; //첨부파일 DB 처리 결과목록 switch (cmd) { case "insert": //등록 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("board", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input"; @@ -498,10 +492,7 @@ public class XitBasicBbsMngController extends AbstractController { // break; case "insertReply": //답글 등록 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("board", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input"; @@ -545,10 +536,7 @@ public class XitBasicBbsMngController extends AbstractController { break; case "update": //수정 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("board", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_edit"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsCreateMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsCreateMngController.java index 9bf3faa8..c029d7ba 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsCreateMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsCreateMngController.java @@ -10,7 +10,7 @@ import cokr.xit.fims.framework.core.constants.FrameworkConstants; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; @@ -50,10 +50,7 @@ public class XitBbsCreateMngController extends AbstractController { private XitBbsCreateMngService xitBbsCreateMngService; @Resource private XitFrameCodeService xitFrameCodeService; - @Autowired - private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + private int PAGE_UNIT = 10; @@ -267,10 +264,7 @@ public class XitBbsCreateMngController extends AbstractController { String message = null; switch (cmd) { case "insert": //등록 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("boardMaster", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BbsCreateMng_input"; @@ -297,10 +291,7 @@ public class XitBbsCreateMngController extends AbstractController { // break; case "update": //수정 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("boardMaster", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BbsCreateMng_edit"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsTmplateMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsTmplateMngController.java index f4489849..f1851e23 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsTmplateMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsTmplateMngController.java @@ -10,7 +10,7 @@ import cokr.xit.fims.framework.core.constants.FrameworkConstants; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; @@ -48,11 +48,8 @@ public class XitBbsTmplateMngController extends AbstractController { private XitBbsTmplateMngService xitBbsTmplateMngService; @Resource private XitFrameCodeService xitFrameCodeService; - @Autowired - private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; - + + /** *
메소드 설명: 게시판템플릿관리 목록 페이지
@@ -210,10 +207,7 @@ public class XitBbsTmplateMngController extends AbstractController { String message = null; switch (cmd) { case "insert": //등록 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("templateInf", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BbsTmplateMng_input"; @@ -238,10 +232,7 @@ public class XitBbsTmplateMngController extends AbstractController { // break; case "update": //수정 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("templateInf", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BbsTmplateMng_edit"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsUseMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsUseMngController.java index 9527e22b..a1e7a37c 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsUseMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/bbs/web/XitBbsUseMngController.java @@ -10,7 +10,7 @@ import cokr.xit.fims.framework.core.constants.FrameworkConstants; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; @@ -48,10 +48,8 @@ public class XitBbsUseMngController extends AbstractController { private XitBbsUseMngService xitBbsUseMngService; @Resource private XitFrameCodeService xitFrameCodeService; - @Autowired - private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + + /** @@ -219,10 +217,7 @@ public class XitBbsUseMngController extends AbstractController { String message = null; switch (cmd) { case "insert": //등록 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("boardUseInf", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BbsUseMng_input"; @@ -260,10 +255,7 @@ public class XitBbsUseMngController extends AbstractController { // break; case "update": //수정 - //유효성 확인 - //2020.11.24. 주석처리 - beanValidator.validate(vo, bindingResult); -// beanValidator.validate("boardUseInf", vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/bbs/BbsUseMng_edit"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/UserMgtServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/UserMgtServiceBean.java index beac151e..7723f1e7 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/UserMgtServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/UserMgtServiceBean.java @@ -36,8 +36,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe private final UserMgtMapper mapper; private final AuthGrpMgtMapper authGrpMgtMapper; private final XitFrameCrudService xitFrameCrudService; - private final ReloadableResourceBundleMessageSource messageSource; - @Autowired + @Qualifier("usrEsntlIdGnrService") private final EgovIdGnrService usrEsntlIdGnrService; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserAbsntMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserAbsntMngServiceBean.java index 120ee354..45dba62a 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserAbsntMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserAbsntMngServiceBean.java @@ -24,8 +24,7 @@ public class XitUserAbsntMngServiceBean extends AbstractServiceBean implements X private XitUserAbsntMngMapper xitUserAbsntMngMapper; @Resource private XitFrameCrudService xitFrameCrudService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; + @Override public List findList(XitUserAbsntMngSearchVO searchVO) { diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserEtcOptMngServiceBean.java b/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserEtcOptMngServiceBean.java index a8ac2b5d..766a4cf9 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserEtcOptMngServiceBean.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/user/service/bean/XitUserEtcOptMngServiceBean.java @@ -25,8 +25,6 @@ public class XitUserEtcOptMngServiceBean extends AbstractServiceBean implements private XitFrameCrudService xitFrameCrudService; @Resource private XitFrameUnitService xitFrameUnitService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; @Override diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserAbsntMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserAbsntMngController.java index cb4d9eb2..5cf4c8da 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserAbsntMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserAbsntMngController.java @@ -10,7 +10,7 @@ import cokr.xit.fims.framework.core.constants.FrameworkConstants; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import cokr.xit.fims.framework.core.utils.XitCmmnUtil; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.util.AjaxUtils; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; @@ -49,10 +49,8 @@ public class XitUserAbsntMngController extends AbstractController { @Resource private XitUserAbsntMngService xitUserAbsntMngService; - @Autowired - private XitBeanValidator beanValidator; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + + @Resource private XitFrameCodeService xitFrameCodeService; @@ -223,8 +221,8 @@ public class XitUserAbsntMngController extends AbstractController { XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); switch (cmd) { case "insert": //등록 - //유효성 확인 - beanValidator.validate(vo, bindingResult); + + if (bindingResult.hasErrors()) { message = "생성에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/usr/userAbsntMng_input"; @@ -249,8 +247,7 @@ public class XitUserAbsntMngController extends AbstractController { // break; case "update": //수정 - //유효성 확인 - beanValidator.validate(vo, bindingResult); + if (bindingResult.hasErrors()) { message = "변경에 실패하였습니다."; sLocationUrl = "forward:/framework/biz/mng/usr/userAbsntMng_edit"; diff --git a/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserEtcOptMngController.java b/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserEtcOptMngController.java index ef3a6299..f1bc85d0 100644 --- a/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserEtcOptMngController.java +++ b/src/main/java/cokr/xit/fims/framework/biz/mng/user/web/XitUserEtcOptMngController.java @@ -43,8 +43,7 @@ public class XitUserEtcOptMngController extends AbstractController { @Resource private XitUserEtcOptMngService xitUserEtcOptMngService; - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; + @Resource private XitFrameCodeService xitFrameCodeService; diff --git a/src/main/java/cokr/xit/fims/framework/core/aop/XitLoginLogAspect.java b/src/main/java/cokr/xit/fims/framework/core/aop/XitLoginLogAspect.java index 2db3c8b6..e86ac4b5 100644 --- a/src/main/java/cokr/xit/fims/framework/core/aop/XitLoginLogAspect.java +++ b/src/main/java/cokr/xit/fims/framework/core/aop/XitLoginLogAspect.java @@ -28,11 +28,10 @@ import javax.servlet.http.HttpServletRequest; public class XitLoginLogAspect { @Resource private XitFrameCrudService xitFrameCrudService; - @Autowired + @Qualifier("xitConectLogIdGnrService") private EgovIdGnrService xitConectLogIdGnrService; - @Resource - private ReloadableResourceBundleMessageSource messageSource; + /** *
메소드 설명: 사용자의 로그인 로그를 생성 한다. 
diff --git a/src/main/java/cokr/xit/fims/framework/core/interceptor/XitAccessIntercepter.java b/src/main/java/cokr/xit/fims/framework/core/interceptor/XitAccessIntercepter.java index 1425e461..6cca8afa 100644 --- a/src/main/java/cokr/xit/fims/framework/core/interceptor/XitAccessIntercepter.java +++ b/src/main/java/cokr/xit/fims/framework/core/interceptor/XitAccessIntercepter.java @@ -27,8 +27,6 @@ import java.io.PrintWriter; @Service public class XitAccessIntercepter extends HandlerInterceptorAdapter { - @Resource(name = "messageSource") - ReloadableResourceBundleMessageSource messageSource; /** * 사이트 접근 시 사용자의 인증 여부를 확인 한다. diff --git a/src/main/java/cokr/xit/fims/framework/core/validation/XitBeanValidator.java b/src/main/java/cokr/xit/fims/framework/core/validation/XitBeanValidator.java deleted file mode 100644 index 2d550e77..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/validation/XitBeanValidator.java +++ /dev/null @@ -1,62 +0,0 @@ -package cokr.xit.fims.framework.core.validation; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.apache.commons.validator.Validator; -import org.apache.commons.validator.ValidatorException; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.validation.Errors; -import org.springmodules.validation.commons.DefaultBeanValidator; -import org.springmodules.validation.commons.DefaultValidatorFactory; - -/** - * - * @업무그룹명: Bean Validator 클래스 - * @설명: Spring Framework DefaultBeanValidator의 확장 기능을 제공 한다. - * @최초작성일: 2020. 11. 24. 오후 4:45:10 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -public class XitBeanValidator extends DefaultBeanValidator { - private static final Log log = LogFactory.getLog(XitBeanValidator.class); - - @Autowired - DefaultValidatorFactory defaultValidatorFactory; - - /** - *
메소드 설명: DefaultBeanValidator의 validate(Object obj, Errors errors)의 확장 기능.
-     * 		-DefaultBeanValidator.validate의 경우 Bean 클래스 명칭을 form name으로 사용하기에 원칙적으로 "formName==BeanClassName"(이)가 성립하는 경우에만 validate 체크가 수행 된다. 
-     * 		-본 메서드는 DefaultBeanValidator의 validate(Object obj, Errors errors) 메서드의 기능과 동일하나 form name을 직접 입력 받아 validate 체크를 수행 하기에
-     * 		-"formName!=BeanClassName"(이)가 성립하는 경우 본 메서드를 활용 할 수 있다.
-     * 
- * @param formName form-validation에 기술한 form name - * @param obj bean(==VO)객체 - * @param errors void 요청처리 후 응답객체 - * @author: 박민규 - * @date: 2020. 11. 24. - */ - public void validate(String formName, Object obj, Errors errors) { - Validator commonsValidator = this.getValidator(formName, obj, errors); - initValidator(commonsValidator); - try { - commonsValidator.validate(); - } - catch (ValidatorException e) { - log.error("Exception while validating object " + obj, e); - } finally { - cleanupValidator(commonsValidator); - } - } - - - private Validator getValidator(String beanName, Object bean, Errors errors) { - Validator validator = new Validator(defaultValidatorFactory.getValidatorResources(), beanName); - validator.setParameter(DefaultValidatorFactory.ERRORS_KEY, errors); - validator.setParameter(Validator.BEAN_PARAM, bean); - return validator; - } - - -} diff --git a/src/main/java/cokr/xit/fims/framework/support/util/JBeanRegistry.java b/src/main/java/cokr/xit/fims/framework/support/util/JBeanRegistry.java index 258a9462..d20ef778 100644 --- a/src/main/java/cokr/xit/fims/framework/support/util/JBeanRegistry.java +++ b/src/main/java/cokr/xit/fims/framework/support/util/JBeanRegistry.java @@ -2,7 +2,7 @@ package cokr.xit.fims.framework.support.util; import cokr.xit.fims.framework.biz.cache.service.CacheService; import org.springframework.context.support.ReloadableResourceBundleMessageSource; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import org.springframework.context.MessageSource; import org.springframework.context.support.MessageSourceAccessor; @@ -12,9 +12,6 @@ import org.springframework.context.support.MessageSourceAccessor; */ public class JBeanRegistry { - public static XitBeanValidator getValidator() { - return (XitBeanValidator)SpringUtils.getBean(XitBeanValidator.class); - } /** * 메시지소스 객체를 반환한다. diff --git a/src/main/java/cokr/xit/fims/framework/support/util/ValidationError.java b/src/main/java/cokr/xit/fims/framework/support/util/ValidationError.java index f566f927..1e0776d0 100644 --- a/src/main/java/cokr/xit/fims/framework/support/util/ValidationError.java +++ b/src/main/java/cokr/xit/fims/framework/support/util/ValidationError.java @@ -1,6 +1,6 @@ package cokr.xit.fims.framework.support.util; -import cokr.xit.fims.framework.core.validation.XitBeanValidator; + import cokr.xit.fims.framework.support.exception.BizRuntimeException; import cokr.xit.fims.framework.support.util.dto.FieldErrorDtl; import lombok.AllArgsConstructor; @@ -33,12 +33,8 @@ public class ValidationError { } public static void of(String voName, Object o, BindingResult bindingResult){ - XitBeanValidator validator = JBeanRegistry.getValidator(); - validator.validate(voName, o, bindingResult); - if (bindingResult.hasErrors()) { - FieldErrorDtl fieldErrorDtl = ValidationError.errorList(bindingResult.getFieldErrors()).get(0); - throw BizRuntimeException.create(fieldErrorDtl.getCode(), fieldErrorDtl.getArguments()); - } + + } } diff --git a/src/main/resources/spring/context-idgen-xit.xml b/src/main/resources/spring/context-idgen-xit.xml index 0d842260..9a29f2c1 100644 --- a/src/main/resources/spring/context-idgen-xit.xml +++ b/src/main/resources/spring/context-idgen-xit.xml @@ -192,44 +192,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/src/main/resources/spring/context-validator.xml b/src/main/resources/spring/context-validator.xml deleted file mode 100644 index 6eb254e8..00000000 --- a/src/main/resources/spring/context-validator.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - classpath:/validator/validator-rules-xit.xml - classpath:/validator/framework/***/**/*.xml - - - classpath:/validator/biz/**/*.xml - - - - - diff --git a/src/main/resources/validator/biz/adm/SendRqstMng.xml b/src/main/resources/validator/biz/adm/SendRqstMng.xml deleted file mode 100644 index 44189547..00000000 --- a/src/main/resources/validator/biz/adm/SendRqstMng.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - -
- - - - - - - - - - maxlength - 5 - - - -
- -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/biz/sysadm/LinkInfoMng.xml b/src/main/resources/validator/biz/sysadm/LinkInfoMng.xml deleted file mode 100644 index eaab17ff..00000000 --- a/src/main/resources/validator/biz/sysadm/LinkInfoMng.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - -
- - - - - - maxlength - 5 - - - - - - - - - - - - maxlength - 10 - - - - -
- -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/biz/sysadm/NotiMng.xml b/src/main/resources/validator/biz/sysadm/NotiMng.xml deleted file mode 100644 index 51f074b9..00000000 --- a/src/main/resources/validator/biz/sysadm/NotiMng.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - -
- - - - - - maxlength - 5 - - - - - - - - maxlength - 5 - - - - - - - - - - - - maxlength - 50 - - - - - - - - - - - - - - - - - - - -
- -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/cmm/answer/CmmAnsTmpl.xml b/src/main/resources/validator/framework/cmm/answer/CmmAnsTmpl.xml deleted file mode 100644 index b0fdc853..00000000 --- a/src/main/resources/validator/framework/cmm/answer/CmmAnsTmpl.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - -
- - - - - - - - - - - maxlength - 400 - - - - - - - maxlength - 600 - - - - - - - maxlength - 400 - - -
-
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/auth/XitAuthRegMng.xml b/src/main/resources/validator/framework/mng/auth/XitAuthRegMng.xml deleted file mode 100644 index ab3fabda..00000000 --- a/src/main/resources/validator/framework/mng/auth/XitAuthRegMng.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - -
- - - - - - -
-
- - -
- - - -
-
- - -
- - - - - - - - - - - - - -
-
- -
diff --git a/src/main/resources/validator/framework/mng/batch/XitBatchRegMng.xml b/src/main/resources/validator/framework/mng/batch/XitBatchRegMng.xml deleted file mode 100644 index c9fb7010..00000000 --- a/src/main/resources/validator/framework/mng/batch/XitBatchRegMng.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - -
- - - - - maxlength - 60 - - - - - - - - maxlength - 255 - - - - - - - - maxlength - 250 - - - -
-
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/batch/XitBatchSchduleMng.xml b/src/main/resources/validator/framework/mng/batch/XitBatchSchduleMng.xml deleted file mode 100644 index 492f2d85..00000000 --- a/src/main/resources/validator/framework/mng/batch/XitBatchSchduleMng.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - -
- - - - - - - - - - - - - - - - - - -
-
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/bbs/XitBasicBbsMng.xml b/src/main/resources/validator/framework/mng/bbs/XitBasicBbsMng.xml deleted file mode 100644 index 01ad7bba..00000000 --- a/src/main/resources/validator/framework/mng/bbs/XitBasicBbsMng.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -
- - - - - maxlength - 1200 - - - - - - - - - - - - - - - - - -
-
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml b/src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml deleted file mode 100644 index e6bb351a..00000000 --- a/src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -
- - - - - maxlength - 1200 - - - - - - - - - - - -
-
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/bbs/XitBbsCreateMng.xml b/src/main/resources/validator/framework/mng/bbs/XitBbsCreateMng.xml deleted file mode 100644 index a72a9c25..00000000 --- a/src/main/resources/validator/framework/mng/bbs/XitBbsCreateMng.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - -
- - - - - maxlength - 120 - - - - - - - - maxlength - 2000 - - - - - - - - - - - - - - - - - - - - - -
-
- -
diff --git a/src/main/resources/validator/framework/mng/bbs/XitBbsTmplateMng.xml b/src/main/resources/validator/framework/mng/bbs/XitBbsTmplateMng.xml deleted file mode 100644 index 7ab447c2..00000000 --- a/src/main/resources/validator/framework/mng/bbs/XitBbsTmplateMng.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - -
- - - - - maxlength - 120 - - - - - - - maxlength - 2000 - - - - - -
-
- - - - - - -
-
- -
diff --git a/src/main/resources/validator/framework/mng/code/XitClCodeMng.xml b/src/main/resources/validator/framework/mng/code/XitClCodeMng.xml deleted file mode 100644 index a9630057..00000000 --- a/src/main/resources/validator/framework/mng/code/XitClCodeMng.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - -
- - - - - maxlength - 3 - - - - - - - maxlength - 60 - - - - - - - maxlength - 200 - - - - - -
- - -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/code/XitCmmnCodeMng.xml b/src/main/resources/validator/framework/mng/code/XitCmmnCodeMng.xml deleted file mode 100644 index 90d3ed6f..00000000 --- a/src/main/resources/validator/framework/mng/code/XitCmmnCodeMng.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - -
- - - - - maxlength - 6 - - - - - - - maxlength - 60 - - - - - - - maxlength - 200 - - - - - - - maxlength - 3 - - - - - -
- - -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/code/XitDetailCodeMng.xml b/src/main/resources/validator/framework/mng/code/XitDetailCodeMng.xml deleted file mode 100644 index cb396117..00000000 --- a/src/main/resources/validator/framework/mng/code/XitDetailCodeMng.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - -
- - - - - maxlength - 6 - - - - - - - maxlength - 15 - - - - - - - maxlength - 60 - - - - - - - maxlength - 200 - - - - - -
- - -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/code/XitZipCodeMng.xml b/src/main/resources/validator/framework/mng/code/XitZipCodeMng.xml deleted file mode 100644 index 75d60e39..00000000 --- a/src/main/resources/validator/framework/mng/code/XitZipCodeMng.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - -
- - - - - maxlength - 6 - - - - - - - maxlength - 20 - - - - - - - maxlength - 20 - - - - - - - maxlength - 30 - - - - - - - maxlength - 60 - - - - - - - maxlength - 20 - - -
- - -
- -
diff --git a/src/main/resources/validator/framework/mng/menu/XitMenuListMng.xml b/src/main/resources/validator/framework/mng/menu/XitMenuListMng.xml deleted file mode 100644 index 3162662d..00000000 --- a/src/main/resources/validator/framework/mng/menu/XitMenuListMng.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - -
- - - - - - - - - - - maxlength - 50 - - - - - - - maxlength - 60 - - - - - - - - - - maxlength - 50 - - - - - - - maxlength - 100 - - - - - - - maxlength - 100 - - - - - - - maxlength - 50 - - -
-
-
diff --git a/src/main/resources/validator/framework/mng/menu/XitProgramMng.xml b/src/main/resources/validator/framework/mng/menu/XitProgramMng.xml deleted file mode 100644 index 8d936168..00000000 --- a/src/main/resources/validator/framework/mng/menu/XitProgramMng.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - -
- - - - - - maxlength - 50 - - - - - - - - maxlength - 100 - - - - - - - maxlength - 50 - - - - - - - maxlength - 100 - - - - - - - maxlength - 100 - - -
-
-
diff --git a/src/main/resources/validator/framework/mng/menu/XitProgrmManageDtl.xml b/src/main/resources/validator/framework/mng/menu/XitProgrmManageDtl.xml deleted file mode 100644 index b1a62a05..00000000 --- a/src/main/resources/validator/framework/mng/menu/XitProgrmManageDtl.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - -
- - - - - maxlength - 50 - - - - - - - - - - maxlength - 20 - - - - - - - maxlength - 1000 - - - - - - - maxlength - 1000 - - - - - - - maxlength - 20 - - - - - - datePatternStrict - yyyy-MM-dd - - - - - - datePatternStrict - yyyy-MM-dd - - - - - - - maxlength - 50 - - -
-
-
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/policy/XitLoginPolicyMng.xml b/src/main/resources/validator/framework/mng/policy/XitLoginPolicyMng.xml deleted file mode 100644 index 61f8eb93..00000000 --- a/src/main/resources/validator/framework/mng/policy/XitLoginPolicyMng.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - -
- - - - - maxlength - 23 - - - - - -
-
- -
\ No newline at end of file diff --git a/src/main/resources/validator/framework/mng/usr/XitUserRegMng.xml b/src/main/resources/validator/framework/mng/usr/XitUserRegMng.xml deleted file mode 100644 index 4c0805a9..00000000 --- a/src/main/resources/validator/framework/mng/usr/XitUserRegMng.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - -
- - - - - - maxlength - 20 - - - - - - - - maxlength - 50 - - - - - - - - - maxlength - 10 - - - mask - [0-9]([0-9])* - - - - - - - maxlength - 15 - - - - - - - - maxlength - 15 - - - - - - - - maxlength - 15 - - - - - - - - - - - - maxlength - 100 - - - - - - - - - - - - - - - -
- -
- -
diff --git a/src/main/resources/validator/framework/mng/usr/XitUserRegMngOfEditPwd.xml b/src/main/resources/validator/framework/mng/usr/XitUserRegMngOfEditPwd.xml deleted file mode 100644 index 412bf27f..00000000 --- a/src/main/resources/validator/framework/mng/usr/XitUserRegMngOfEditPwd.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - -
- - - - - - - - - -
- -
- -
\ No newline at end of file diff --git a/src/main/resources/validator/validator-rules-xit.xml b/src/main/resources/validator/validator-rules-xit.xml deleted file mode 100644 index 3529d201..00000000 --- a/src/main/resources/validator/validator-rules-xit.xml +++ /dev/null @@ -1,1530 +0,0 @@ - - - - - - - - - - = 0) { - value = field.options[si].value; - } - } else if (field.type == 'radio' || field.type == 'checkbox') { - if (field.checked) { - value = field.value; - } - } else { - value = field.value; - } - if (trim(value).length == 0) { - if ((i == 0) && (field.type != 'hidden')) { - focusField = field; - } - fields[i++] = oRequired[x][1]; - isValid = false; - } - } else if (field.type == "select-multiple") { - var numOptions = field.options.length; - lastSelected=-1; - for(loop=numOptions-1;loop>=0;loop--) { - if(field.options[loop].selected) { - lastSelected = loop; - value = field.options[loop].value; - break; - } - } - if(lastSelected < 0 || trim(value).length == 0) { - if(i == 0) { - focusField = field; - } - fields[i++] = oRequired[x][1]; - isValid=false; - } - } else if ((field.length > 0) && (field[0].type == 'radio' || field[0].type == 'checkbox')) { - isChecked=-1; - for (loop=0;loop < field.length;loop++) { - if (field[loop].checked) { - isChecked=loop; - break; // only one needs to be checked - } - } - if (isChecked < 0) { - if (i == 0) { - focusField = field[0]; - } - fields[i++] = oRequired[x][1]; - isValid=false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return isValid; - } - - // Trim whitespace from left and right sides of s. - function trim(s) { - return s.replace( /^\s*/, "" ).replace( /\s*$/, "" ); - } - - ]]> - - - - - - - - - - - - 0) && (field.value.length < iMin)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oMinLength[x][1]; - isValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return isValid; - }]]> - - - - - - - - iMax) { - if (i == 0) { - focusField = field; - } - fields[i++] = oMaxLength[x][1]; - isValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return isValid; - }]]> - - - - - - - - 0)) { - - if (!matchPattern(field.value, oMasked[x][2]("mask"))) { - if (i == 0) { - focusField = field; - } - fields[i++] = oMasked[x][1]; - isValid = false; - } - } - } - - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return isValid; - } - - function matchPattern(value, mask) { - return mask.exec(value); - }]]> - - - - - - - - = 0) { - value = field.options[si].value; - } - } else { - value = field.value; - } - - if (value.length > 0) { - if (!isAllDigits(value)) { - bValid = false; - if (i == 0) { - focusField = field; - } - fields[i++] = oByte[x][1]; - - } else { - - var iValue = parseInt(value); - if (isNaN(iValue) || !(iValue >= -128 && iValue <= 127)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oByte[x][1]; - bValid = false; - } - } - } - - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - }]]> - - - - - - - - = 0) { - value = field.options[si].value; - } - } else { - value = field.value; - } - - if (value.length > 0) { - if (!isAllDigits(value)) { - bValid = false; - if (i == 0) { - focusField = field; - } - fields[i++] = oShort[x][1]; - - } else { - - var iValue = parseInt(value); - if (isNaN(iValue) || !(iValue >= -32768 && iValue <= 32767)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oShort[x][1]; - bValid = false; - } - } - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - }]]> - - - - - - - - = 0) { - value = field.options[si].value; - } - } else { - value = field.value; - } - - if (value.length > 0) { - - if (!isAllDigits(value)) { - bValid = false; - if (i == 0) { - focusField = field; - } - fields[i++] = oInteger[x][1]; - - } else { - var iValue = parseInt(value); - if (isNaN(iValue) || !(iValue >= -2147483648 && iValue <= 2147483647)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oInteger[x][1]; - bValid = false; - } - } - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function isAllDigits(argvalue) { - argvalue = argvalue.toString(); - var validChars = "0123456789"; - var startFrom = 0; - if (argvalue.substring(0, 2) == "0x") { - validChars = "0123456789abcdefABCDEF"; - startFrom = 2; - } else if (argvalue.charAt(0) == "0") { - validChars = "01234567"; - startFrom = 1; - } else if (argvalue.charAt(0) == "-") { - startFrom = 1; - } - - for (var n = startFrom; n < argvalue.length; n++) { - if (validChars.indexOf(argvalue.substring(n, n+1)) == -1) return false; - } - return true; - }]]> - - - - - - - - - - - = 0) { - value = field.options[si].value; - } - } else { - value = field.value; - } - - if (value.length > 0) { - // remove '.' before checking digits - var tempArray = value.split('.'); - var joinedString= tempArray.join(''); - - if (!isAllDigits(joinedString)) { - bValid = false; - if (i == 0) { - focusField = field; - } - fields[i++] = oFloat[x][1]; - - } else { - var iValue = parseFloat(value); - if (isNaN(iValue)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oFloat[x][1]; - bValid = false; - } - } - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - }]]> - - - - - - - - - - - 0) && - (datePattern.length > 0)) { - var MONTH = "MM"; - var DAY = "dd"; - var YEAR = "yyyy"; - var orderMonth = datePattern.indexOf(MONTH); - var orderDay = datePattern.indexOf(DAY); - var orderYear = datePattern.indexOf(YEAR); - if ((orderDay < orderYear && orderDay > orderMonth)) { - var iDelim1 = orderMonth + MONTH.length; - var iDelim2 = orderDay + DAY.length; - var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); - var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); - if (iDelim1 == orderDay && iDelim2 == orderYear) { - dateRegexp = new RegExp("^(\\d{2})(\\d{2})(\\d{4})$"); - } else if (iDelim1 == orderDay) { - dateRegexp = new RegExp("^(\\d{2})(\\d{2})[" + delim2 + "](\\d{4})$"); - } else if (iDelim2 == orderYear) { - dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})(\\d{4})$"); - } else { - dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{4})$"); - } - var matched = dateRegexp.exec(value); - if(matched != null) { - if (!isValidDate(matched[2], matched[1], matched[3])) { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } else { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } else if ((orderMonth < orderYear && orderMonth > orderDay)) { - var iDelim1 = orderDay + DAY.length; - var iDelim2 = orderMonth + MONTH.length; - var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); - var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); - if (iDelim1 == orderMonth && iDelim2 == orderYear) { - dateRegexp = new RegExp("^(\\d{2})(\\d{2})(\\d{4})$"); - } else if (iDelim1 == orderMonth) { - dateRegexp = new RegExp("^(\\d{2})(\\d{2})[" + delim2 + "](\\d{4})$"); - } else if (iDelim2 == orderYear) { - dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})(\\d{4})$"); - } else { - dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{4})$"); - } - var matched = dateRegexp.exec(value); - if(matched != null) { - if (!isValidDate(matched[1], matched[2], matched[3])) { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } else { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } else if ((orderMonth > orderYear && orderMonth < orderDay)) { - var iDelim1 = orderYear + YEAR.length; - var iDelim2 = orderMonth + MONTH.length; - var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); - var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); - if (iDelim1 == orderMonth && iDelim2 == orderDay) { - dateRegexp = new RegExp("^(\\d{4})(\\d{2})(\\d{2})$"); - } else if (iDelim1 == orderMonth) { - dateRegexp = new RegExp("^(\\d{4})(\\d{2})[" + delim2 + "](\\d{2})$"); - } else if (iDelim2 == orderDay) { - dateRegexp = new RegExp("^(\\d{4})[" + delim1 + "](\\d{2})(\\d{2})$"); - } else { - dateRegexp = new RegExp("^(\\d{4})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{2})$"); - } - var matched = dateRegexp.exec(value); - if(matched != null) { - if (!isValidDate(matched[3], matched[2], matched[1])) { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } else { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } else { - if (i == 0) { - focusField = form[oDate[x][0]]; - } - fields[i++] = oDate[x][1]; - bValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function isValidDate(day, month, year) { - if (month < 1 || month > 12) { - return false; - } - if (day < 1 || day > 31) { - return false; - } - if ((month == 4 || month == 6 || month == 9 || month == 11) && - (day == 31)) { - return false; - } - if (month == 2) { - var leap = (year % 4 == 0 && - (year % 100 != 0 || year % 400 == 0)); - if (day>29 || (day == 29 && !leap)) { - return false; - } - } - return true; - }]]> - - - - - - - - - - - - - - - 0)) { - - var iMin = parseInt(oRange[x][2]("min")); - var iMax = parseInt(oRange[x][2]("max")); - var iValue = parseInt(field.value); - if (!(iValue >= iMin && iValue <= iMax)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oRange[x][1]; - isValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return isValid; - }]]> - - - - - - - 0)) { - - var fMin = parseFloat(oRange[x][2]("min")); - var fMax = parseFloat(oRange[x][2]("max")); - var fValue = parseFloat(field.value); - if (!(fValue >= fMin && fValue <= fMax)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oRange[x][1]; - isValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return isValid; - }]]> - - - - - - - 0)) { - if (!luhnCheck(form[oCreditCard[x][0]].value)) { - if (i == 0) { - focusField = form[oCreditCard[x][0]]; - } - fields[i++] = oCreditCard[x][1]; - bValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - /** - * Reference: http://www.ling.nwu.edu/~sburke/pub/luhn_lib.pl - */ - function luhnCheck(cardNumber) { - if (isLuhnNum(cardNumber)) { - var no_digit = cardNumber.length; - var oddoeven = no_digit & 1; - var sum = 0; - for (var count = 0; count < no_digit; count++) { - var digit = parseInt(cardNumber.charAt(count)); - if (!((count & 1) ^ oddoeven)) { - digit *= 2; - if (digit > 9) digit -= 9; - }; - sum += digit; - }; - if (sum == 0) return false; - if (sum % 10 == 0) return true; - }; - return false; - } - - function isLuhnNum(argvalue) { - argvalue = argvalue.toString(); - if (argvalue.length == 0) { - return false; - } - for (var n = 0; n < argvalue.length; n++) { - if ((argvalue.substring(n, n+1) < "0") || - (argvalue.substring(n,n+1) > "9")) { - return false; - } - } - return true; - }]]> - - - - - - - - 0)) { - if (!checkEmail(form[oEmail[x][0]].value)) { - if (i == 0) { - focusField = form[oEmail[x][0]]; - } - fields[i++] = oEmail[x][1]; - bValid = false; - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - /** - * Reference: Sandeep V. Tamhankar (stamhankar@hotmail.com), - * http://javascript.internet.com - */ - function checkEmail(emailStr) { - if (emailStr.length == 0) { - return true; - } - var emailPat=/^(.+)@(.+)$/; - var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"; - var validChars="\[^\\s" + specialChars + "\]"; - var quotedUser="(\"[^\"]*\")"; - var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/; - var atom=validChars + '+'; - var word="(" + atom + "|" + quotedUser + ")"; - var userPat=new RegExp("^" + word + "(\\." + word + ")*$"); - var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$"); - var matchArray=emailStr.match(emailPat); - if (matchArray == null) { - return false; - } - var user=matchArray[1]; - var domain=matchArray[2]; - if (user.match(userPat) == null) { - return false; - } - var IPArray = domain.match(ipDomainPat); - if (IPArray != null) { - for (var i = 1; i <= 4; i++) { - if (IPArray[i] > 255) { - return false; - } - } - return true; - } - var domainArray=domain.match(domainPat); - if (domainArray == null) { - return false; - } - var atomPat=new RegExp(atom,"g"); - var domArr=domain.match(atomPat); - var len=domArr.length; - if ((domArr[domArr.length-1].length < 2) || - (domArr[domArr.length-1].length > 3)) { - return false; - } - if (len < 2) { - return false; - } - return true; - }]]> - - - - - - - 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - /** - * Reference: JS Guide - * http://jsguide.net/ver2/articles/frame.php?artnum=002 - */ - function checkIhIdNum(ihidnum){ - - fmt = /^\d{6}[1234]\d{6}$/; - if(!fmt.test(ihidnum)){ - return false; - } - - birthYear = (ihidnum.charAt(7) <= "2") ? "19" : "20"; - birthYear += ihidnum.substr(0, 2); - birthMonth = ihidnum.substr(2, 2) - 1; - birthDate = ihidnum.substr(4, 2); - birth = new Date(birthYear, birthMonth, birthDate); - - if( birth.getYear() % 100 != ihidnum.substr(0, 2) || - birth.getMonth() != birthMonth || - birth.getDate() != birthDate) { - return false; - } - - var arrDivide = [2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5]; - var checkdigit = 0; - for(var i=0;i - - - - 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function checkKorean(koreanStr){ - for(var i=0;i - - - - - - 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function checkPassword1(pwd) { - p_pass = pwd.value; - - if (pwd.value.length < 8 || pwd.value.length > 20 ){ - - pwd.value =""; - pwd.focus(); - return false; - } - return pwd; - } - ]]> - - - - - 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function checkPassword2(pwd) { - var str = pwd.value; - for (var i=0; i < str .length; i++) { - ch_char = str .charAt(i); - ch = ch_char.charCodeAt(); - if( (ch >= 33 && ch <= 47) || (ch >= 58 && ch <= 64) || (ch >= 91 && ch <= 96) || (ch >= 123 && ch <= 126) ) { - return false; - } - } - return pwd; - } - ]]> - - - - - 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function checkPassword3(pwd) { - p_pass = pwd.value; - var cnt=0,cnt2=1,cnt3=1; - var temp=""; - - for(i=0;i < p_pass.length;i++){ - temp_pass1 = p_pass.charAt(i); - next_pass = (parseInt(temp_pass1.charCodeAt(0)))+1; - temp_p = p_pass.charAt(i+1); - temp_pass2 = (parseInt(temp_p.charCodeAt(0))); - if (temp_pass2 == next_pass) - cnt2 = cnt2 + 1; - else - cnt2 = 1; - if (temp_pass1 == temp_p) - cnt3 = cnt3 + 1; - else - cnt3 = 1; - if (cnt2 > 3) break; - if (cnt3 > 3) break; - } - if (cnt2 > 3){ - pwd.value =""; - pwd.focus(); - return false; - } - return pwd; - } - ]]> - - - - - 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function checkPassword4(pwd) { - p_pass = pwd.value; - var cnt=0,cnt2=1,cnt3=1; - var temp=""; - - for(i=0;i < p_pass.length;i++){ - temp_pass1 = p_pass.charAt(i); - next_pass = (parseInt(temp_pass1.charCodeAt(0)))+1; - temp_p = p_pass.charAt(i+1); - temp_pass2 = (parseInt(temp_p.charCodeAt(0))); - if (temp_pass2 == next_pass) - cnt2 = cnt2 + 1; - else - cnt2 = 1; - if (temp_pass1 == temp_p) - cnt3 = cnt3 + 1; - else - cnt3 = 1; - if (cnt2 > 3) break; - if (cnt3 > 3) break; - } - if (cnt3 > 3){ - pwd.value =""; - pwd.focus(); - return false; - } - return pwd; - } - ]]> - - - - = 0) { - value = field.options[si].value; - } - } else { - value = field.value; - } - - if (value.length > 0) { - - if (!isOK(value)) { - bValid = false; - if (i == 0) { - focusField = field; - } - fields[i++] = oInteger[x][1]; - - } else { - var iValue = parseInt(value); - if (isNaN(iValue) || !(iValue >= -2147483648 && iValue <= 2147483647)) { - if (i == 0) { - focusField = field; - } - fields[i++] = oInteger[x][1]; - bValid = false; - } - } - } - } - } - if (fields.length > 0) { - focusField.focus(); - alert(fields.join('\n')); - } - return bValid; - } - - function isOK(vv){ - if (vv >0) return true; - else return false; - } - ]]> - - - - -