diff --git a/src/main/java/cokr/xit/fims/framework/core/BaseVO.java b/src/main/java/cokr/xit/fims/framework/core/BaseVO.java deleted file mode 100644 index da5a7478..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/BaseVO.java +++ /dev/null @@ -1,31 +0,0 @@ -package cokr.xit.fims.framework.core; - -import lombok.*; - -import java.io.Serializable; - -/** - * - * @업무그룹명: BaseVO 클래스 - * @설명: - * @최초작성일: 2020. 3. 26. 오전 10:40:28 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -@Setter -@Getter -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode -@ToString -public class BaseVO implements Serializable{ - /** - * serialVersionUID - */ - private static final long serialVersionUID = 966032273162649197L; - - - private int totCnt; -} diff --git a/src/main/java/cokr/xit/fims/framework/core/ErrorResponse.java b/src/main/java/cokr/xit/fims/framework/core/ErrorResponse.java deleted file mode 100644 index 3043cc5e..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/ErrorResponse.java +++ /dev/null @@ -1,108 +0,0 @@ -package cokr.xit.fims.framework.core; - -//import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import cokr.xit.fims.framework.core.constants.ErrorCode; -import cokr.xit.fims.framework.support.exception.BizRuntimeException; -import cokr.xit.fims.framework.support.exception.CustomBaseException; -import cokr.xit.fims.framework.support.util.Checks; -import lombok.Builder; -import lombok.Getter; -import lombok.Setter; -import lombok.ToString; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.springframework.http.HttpStatus; - -import java.io.Serializable; -import java.time.LocalDateTime; - -//@JacksonXmlRootElement(localName = "result") -@Slf4j -@Getter -@Builder -@ToString -public class ErrorResponse implements IResponse, Serializable { - private static final long SerialVersionUID = 1L; - - private final boolean result = false; - - @JsonIgnore - private final LocalDateTime timestamp = LocalDateTime.now(); - - private final int status; - - private final String error; - - private final String code; - - @Setter - private String message; - - public static ErrorResponse of(ErrorCode errorCode) { - ErrorResponse errorResponse = getErrorResponse(errorCode); - printErrorResponse(errorResponse); - - return errorResponse; - } - - public static ErrorResponse of(CustomBaseException cbe) { - ErrorResponse errorResponse = null; - - if (Checks.isNotEmpty(cbe.getErrorCode())) { - errorResponse = getErrorResponse(cbe.getErrorCode()); - return ErrorResponse.of(cbe.getErrorCode()); - - } else { - errorResponse = ErrorResponse.builder() - .status(cbe.getHttpStatus().value()) - .error(cbe.getHttpStatus().name()) - .code(Checks.isNotEmpty(cbe.getCode()) ? cbe.getCode() : StringUtils.EMPTY) - .message(Checks.isNotEmpty(cbe.getLocalizedMessage()) ? cbe.getLocalizedMessage() : cbe.getLocalizedMessage()) - .build(); - } - printErrorResponse(errorResponse); - - return errorResponse; - } - - public static ErrorResponse of(BizRuntimeException cbe) { - ErrorResponse errorResponse = errorResponse = ErrorResponse.builder() - .status(HttpStatus.BAD_REQUEST.value()) - .error(HttpStatus.BAD_REQUEST.name()) - .code(Checks.isNotEmpty(cbe.getCode()) ? cbe.getCode() : StringUtils.EMPTY) - .message(Checks.isNotEmpty(cbe.getLocalizedMessage()) ? cbe.getLocalizedMessage() : cbe.getLocalizedMessage()) - .build(); - - printErrorResponse(errorResponse); - return errorResponse; - } - - public static ErrorResponse of(String code, String message) { - ErrorResponse errorResponse = ErrorResponse.builder() - .status(HttpStatus.BAD_REQUEST.value()) - .error(HttpStatus.BAD_REQUEST.name()) - .code(code) - .message(message) - .build(); - printErrorResponse(errorResponse); - - return errorResponse; - } - - public static ErrorResponse getErrorResponse(ErrorCode errorCode) { - return ErrorResponse.builder() - .status(errorCode.getHttpStatus().value()) - .error(errorCode.getHttpStatus().name()) - .code(errorCode.name()) - .message(errorCode.getMessage()) - .build(); - } - - private static void printErrorResponse(ErrorResponse errorResponse) { - log.error("##############################################################################################"); - log.error("{}", errorResponse); - log.error("##############################################################################################"); - } -} diff --git a/src/main/java/cokr/xit/fims/framework/core/IResponse.java b/src/main/java/cokr/xit/fims/framework/core/IResponse.java deleted file mode 100644 index e252aa4b..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/IResponse.java +++ /dev/null @@ -1,4 +0,0 @@ -package cokr.xit.fims.framework.core; - -public interface IResponse { -} diff --git a/src/main/java/cokr/xit/fims/framework/core/ResultMessage.java b/src/main/java/cokr/xit/fims/framework/core/ResultMessage.java deleted file mode 100644 index 02f74395..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/ResultMessage.java +++ /dev/null @@ -1,17 +0,0 @@ -package cokr.xit.fims.framework.core; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.Setter; - -/** - * @author Lim, Jong Uk (minuk926) - * @since 2021-11-11 - */ -@Setter -@Getter -@AllArgsConstructor -public class ResultMessage { - private String code; - private String message; -} diff --git a/src/main/java/cokr/xit/fims/framework/core/XitAttachFileRespVO.java b/src/main/java/cokr/xit/fims/framework/core/XitAttachFileRespVO.java deleted file mode 100644 index e93e3bc6..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/XitAttachFileRespVO.java +++ /dev/null @@ -1,32 +0,0 @@ -package cokr.xit.fims.framework.core; - -import cokr.xit.fims.framework.biz.cmm.XitFileDetailInfoVO; -import lombok.*; - -import java.util.List; - -/** - * - * @업무그룹명: 첨부파일에 대한 처리 결과 VO - * @설명: 첨부파일 목록 DB 등록(XitFrameUnitService.addAttachFileInfo) 서비스의 처리결과 응답 VO - * @최초작성일: 2020. 5. 11. 오후 6:05:11 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ - -@Setter -@Getter -@NoArgsConstructor -@AllArgsConstructor -@ToString -@EqualsAndHashCode(callSuper = false) -public class XitAttachFileRespVO extends XitFileDetailInfoVO{ - /** - * serialVersionUID - */ - private static final long serialVersionUID = -7580534222030605959L; - - protected List listAttachFileVO; -} diff --git a/src/main/java/cokr/xit/fims/framework/core/XitBaseSearchVO.java b/src/main/java/cokr/xit/fims/framework/core/XitBaseSearchVO.java deleted file mode 100644 index ff431b6f..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/XitBaseSearchVO.java +++ /dev/null @@ -1,236 +0,0 @@ -package cokr.xit.fims.framework.core; - -import org.apache.commons.lang3.builder.ToStringBuilder; - -import java.io.Serializable; - - -/** - * - * @업무그룹명: BaseSearchVO 클래스 - * @설명: - * @최초작성일: 2020. 3. 26. 오전 10:40:28 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -public class XitBaseSearchVO implements Serializable { - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1825279179578340953L; - /** 검색구분(list: 페이징 적용, 그외: 페이징 미적용 */ - private String searchGubun = "list"; - - /** 검색조건-회원상태 (0, A, D, P)*/ - private String sbscrbSttus = "0"; - - /** 검색조건 */ - private String searchCondition = ""; - - /** 검색Keyword */ - private String searchKeyword = ""; - - /** 검색사용여부 */ - private String searchUseYn = ""; - - /** 현재페이지 */ - private int pageIndex = 1; - - /** 페이지갯수 */ - private int pageUnit = 10; - - /** 페이지사이즈 */ - private int pageSize = 10; - - /** firstIndex */ - private int firstIndex = 1; - - /** lastIndex */ - private int lastIndex = 1; - - /** recordCountPerPage */ - private int recordCountPerPage = 10; - - /** 검색KeywordFrom */ - private String searchKeywordFrom = ""; - - /** 검색KeywordTo */ - private String searchKeywordTo = ""; - - - /** 현재 페이지 */ - private int pageNum = 1; - /** 한 페이지에 표현되는 로우(row)의 개수 */ - private int fetchSize = -1; - /* ************************* - * tui Grid Paging 필드 - ************************* */ - /** 로우들의 순서를 결정하는 컬럼의 이름 */ - private String sortColumn; - /** 로우 정렬 방법(true: ASC/오름차순, false: DESC/내림차순) */ - private String sortAscending; - /* ************************* - * //tui Grid Paging 필드 - ************************* */ - - - - public String getSbscrbSttus() { - return sbscrbSttus; - } - - public void setSbscrbSttus(String sbscrbSttus) { - this.sbscrbSttus = sbscrbSttus; - } - - public String getSearchGubun() { - return searchGubun; - } - - public void setSearchGubun(String searchGubun) { - this.searchGubun = searchGubun; - } - - public int getFirstIndex() { - return firstIndex; - } - - public void setFirstIndex(int firstIndex) { - this.firstIndex = firstIndex; - } - - public int getLastIndex() { - return lastIndex; - } - - public void setLastIndex(int lastIndex) { - this.lastIndex = lastIndex; - } - - public int getRecordCountPerPage() { - return recordCountPerPage; - } - - public void setRecordCountPerPage(int recordCountPerPage) { - this.recordCountPerPage = recordCountPerPage; - } - - public String getSearchCondition() { - return searchCondition; - } - - public void setSearchCondition(String searchCondition) { - this.searchCondition = searchCondition; - } - - public String getSearchKeyword() { - return searchKeyword; - } - - public void setSearchKeyword(String searchKeyword) { - this.searchKeyword = searchKeyword; - } - - public String getSearchUseYn() { - return searchUseYn; - } - - public void setSearchUseYn(String searchUseYn) { - this.searchUseYn = searchUseYn; - } - - public int getPageIndex() { - return pageIndex; - } - - public void setPageIndex(int pageIndex) { - this.pageIndex = pageIndex; - } - - public int getPageUnit() { - return pageUnit; - } - - public void setPageUnit(int pageUnit) { - this.pageUnit = pageUnit; - } - - public int getPageSize() { - return pageSize; - } - - public void setPageSize(int pageSize) { - this.pageSize = pageSize; - } - - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - - /** - * searchKeywordFrom attribute를 리턴한다. - * @return String - */ - public String getSearchKeywordFrom() { - return searchKeywordFrom; - } - - /** - * searchKeywordFrom attribute 값을 설정한다. - * @param searchKeywordFrom String - */ - public void setSearchKeywordFrom(String searchKeywordFrom) { - this.searchKeywordFrom = searchKeywordFrom; - } - - /** - * searchKeywordTo attribute를 리턴한다. - * @return String - */ - public String getSearchKeywordTo() { - return searchKeywordTo; - } - - /** - * searchKeywordTo attribute 값을 설정한다. - * @param searchKeywordTo String - */ - public void setSearchKeywordTo(String searchKeywordTo) { - this.searchKeywordTo = searchKeywordTo; - } - - public int getPageNum() { - return pageNum; - } - - public void setPageNum(int pageNum) { - this.pageNum = pageNum; - } - - public int getFetchSize(){ - return fetchSize; - } - - public void setFetchSize(int fetchSize){ - this.fetchSize = fetchSize; - } - - public String getSortColumn() { - return sortColumn; - } - - public void setSortColumn(String sortColumn) { - this.sortColumn = sortColumn; - } - - public String getSortAscending() { - return sortAscending; - } - - public void setSortAscending(String sortAscending) { - this.sortAscending = sortAscending; - } -} diff --git a/src/main/java/cokr/xit/fims/framework/core/XitCodeVO.java b/src/main/java/cokr/xit/fims/framework/core/XitCodeVO.java deleted file mode 100644 index fa33bfa0..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/XitCodeVO.java +++ /dev/null @@ -1,69 +0,0 @@ -package cokr.xit.fims.framework.core; - -public class XitCodeVO extends BaseVO { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - - /** 분류코드ID */ - private String ctgrId; - /** 분류코드명 */ - private String ctgrNm; - /** 코드 설명 */ - private String dscrp; - /** 코드ID */ - private String grpId; - /** 코드ID명 */ - private String grpNm; - /** 코드 */ - private String code; - /** 코드명 */ - private String codeVal; - - public String getCtgrId() { - return ctgrId; - } - public void setCtgrId(String ctgrId) { - this.ctgrId = ctgrId; - } - public String getCtgrNm() { - return ctgrNm; - } - public void setCtgrNm(String ctgrNm) { - this.ctgrNm = ctgrNm; - } - public String getDscrp() { - return dscrp; - } - public void setDscrp(String dscrp) { - this.dscrp = dscrp; - } - public String getGrpId() { - return grpId; - } - public void setGrpId(String grpId) { - this.grpId = grpId; - } - public String getGrpNm() { - return grpNm; - } - public void setGrpNm(String grpNm) { - this.grpNm = grpNm; - } - public String getCode() { - return code; - } - public void setCode(String code) { - this.code = code; - } - public String getCodeVal() { - return codeVal; - } - public void setCodeVal(String codeVal) { - this.codeVal = codeVal; - } - - -} diff --git a/src/main/java/cokr/xit/fims/framework/core/XitMenuManageVO.java b/src/main/java/cokr/xit/fims/framework/core/XitMenuManageVO.java deleted file mode 100644 index 65df06bb..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/XitMenuManageVO.java +++ /dev/null @@ -1,74 +0,0 @@ -package cokr.xit.fims.framework.core; - -import lombok.*; - -/** - * - * @업무그룹명: 메뉴목록관리VO - * @설명: 화면의 상단/좌측 메뉴목록을 처리하기 위한 VO - * @최초작성일: 2 - * 020. 3. 24. 오전 11:28:19 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -@Setter -@Getter -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode -@ToString -public class XitMenuManageVO { - - /** 메뉴정보 */ - /** 메뉴번호 */ - private int menuNo; - /** 메뉴순서 */ - private int srtOrd; - /** 메뉴명 */ - private String menuNm; - /** 상위메뉴번호 */ - private int prntNo; - /** 메뉴설명 */ - private String dscrp; - /** 관련이미지경로 */ - private String relateImagePath; - /** 관련이미지명 */ - private String imgNm; - /** 프로그램파일명 */ - private String pgrmFileNm; - /** URL */ - private String chkURL; - - /** 사이트맵 */ - /** 생성자ID **/ - private String creatPersonId; - - /** 권한정보설정 */ - /** 권한코드 */ - private String authId; - - /** 기타VO변수 */ - private String tempValue; - private int tempInt; - - - /** Login 메뉴관련 VO변수 */ - /** tmpId */ - private String tmpId; - /** tmpPassword */ - private String tmpPassword; - /** tmpName */ - private String tmpName; - /** tmpUserSe */ - private String tmpUserSe; - /** tmpEmail */ - private String tmpEmail; - /** tmpOrgId */ - private String tmpOrgId; - /** tmpUniqId */ - private String tmpUniqId; - /** tmpCmd */ - private String tmpCmd; -} diff --git a/src/main/java/cokr/xit/fims/framework/core/utils/XitProperties.java b/src/main/java/cokr/xit/fims/framework/core/utils/XitProperties.java deleted file mode 100644 index aa57999f..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/utils/XitProperties.java +++ /dev/null @@ -1,229 +0,0 @@ -package cokr.xit.fims.framework.core.utils; - -import lombok.extern.slf4j.Slf4j; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.*; - -//TODO : 제거하도록 .... - -/** - * - * @업무그룹명: Properties - * @설명: properties값들을 파일로부터 읽어와 Globals클래스의 정적변수로 로드시켜주는 클래스로 문자열 정보 기준으로 사용할 전역변수를 시스템 재시작으로 반영할 수 있도록 한다. - * @최초작성일: 2020. 4. 28. 오후 2:40:57 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -@Slf4j -public class XitProperties{ - - //프로퍼티값 로드시 에러발생하면 반환되는 에러문자열 - public static final String ERR_CODE =" EXCEPTION OCCURRED"; - public static final String ERR_CODE_FNFE =" EXCEPTION(FNFE) OCCURRED"; - public static final String ERR_CODE_IOE =" EXCEPTION(IOE) OCCURRED"; - - //파일구분자 - static final char FILE_SEPARATOR = File.separatorChar; - - - - public static final String RELATIVE_PATH_PREFIX = XitProperties.class.getClassLoader().getResource("xitProps").getPath(); - //+ System.getProperty("file.separator") + ".." + System.getProperty("file.separator") - //+ ".." + System.getProperty("file.separator") + ".." + System.getProperty("file.separator"); - - public static final String GLOBALS_PROPERTIES_FILE = RELATIVE_PATH_PREFIX + "globals.properties"; - - - - /** - * 인자로 주어진 문자열을 Key값으로 하는 상대경로 프로퍼티 값을 절대경로로 반환한다(Globals.java 전용) - * @param keyName String - * @return String - - public static String getPathProperty(String keyName){ - String value = ERR_CODE; - value="99"; - debug(GLOBALS_PROPERTIES_FILE + " : " + keyName); - FileInputStream fis = null; - try{ - Properties props = new Properties(); - fis = new FileInputStream(GLOBALS_PROPERTIES_FILE); - props.load(new java.io.BufferedInputStream(fis)); - value = props.getProperty(keyName).trim(); - value = RELATIVE_PATH_PREFIX + "egovProps" + System.getProperty("file.separator") + value; - }catch(FileNotFoundException fne){ - debug(fne); - }catch(IOException ioe){ - debug(ioe); - }catch(Exception e){ - debug(e); - }finally{ - try { - if (fis != null) fis.close(); - } catch (Exception ex) { - ex.printStackTrace(); - } - - } - return value; - } -*/ - - /** - * 인자로 주어진 문자열을 Key값으로 하는 프로퍼티 값을 반환한다(Globals.java 전용) - * @param keyName String - * @return String - */ - public static String getProperty(String keyName){ - String value = ERR_CODE; - value="99"; - debug(GLOBALS_PROPERTIES_FILE + " : " + keyName); - FileInputStream fis = null; - try{ - Properties props = new Properties(); - fis = new FileInputStream(GLOBALS_PROPERTIES_FILE); - props.load(new java.io.BufferedInputStream(fis)); - value = props.getProperty(keyName).trim(); - }catch(FileNotFoundException fne){ - debug(fne); - }catch(IOException ioe){ - debug(ioe); - }catch(Exception e){ - debug(e); - }finally{ - try { - if (fis != null) fis.close(); - } catch (Exception ex) { - ex.printStackTrace(); - } - - } - return value; - } - /** - * 주어진 파일에서 인자로 주어진 문자열을 Key값으로 하는 프로퍼티 상대 경로값을 절대 경로값으로 반환한다 - * @param fileName String - * @param key String - * @return String - - public static String getPathProperty(String fileName, String key){ - FileInputStream fis = null; - try{ - java.util.Properties props = new java.util.Properties(); - fis = new FileInputStream(fileName); - props.load(new java.io.BufferedInputStream(fis)); - fis.close(); - - String value = props.getProperty(key); - value = RELATIVE_PATH_PREFIX + "egovProps" + System.getProperty("file.separator") + value; - return value; - }catch(java.io.FileNotFoundException fne){ - return ERR_CODE_FNFE; - }catch(java.io.IOException ioe){ - return ERR_CODE_IOE; - }finally{ - try { - if (fis != null) fis.close(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - } - */ - - /** - * 주어진 파일에서 인자로 주어진 문자열을 Key값으로 하는 프로퍼티 값을 반환한다 - * @param fileName String - * @param key String - * @return String - - public static String getProperty(String fileName, String key){ - FileInputStream fis = null; - try{ - java.util.Properties props = new java.util.Properties(); - fis = new FileInputStream(fileName); - props.load(new java.io.BufferedInputStream(fis)); - fis.close(); - - String value = props.getProperty(key); - return value; - }catch(java.io.FileNotFoundException fne){ - return ERR_CODE_FNFE; - }catch(java.io.IOException ioe){ - return ERR_CODE_IOE; - }finally{ - try { - if (fis != null) fis.close(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - } - */ - /** - * 주어진 프로파일의 내용을 파싱하여 (key-value) 형태의 구조체 배열을 반환한다. - * @param property String - * @return ArrayList - */ - @SuppressWarnings("unused") - public static ArrayList> loadPropertyFile(String property){ - - // key - value 형태로 된 배열 결과 - ArrayList> keyList = new ArrayList>(); - - String src = property.replace('\\', FILE_SEPARATOR).replace('/', FILE_SEPARATOR); - FileInputStream fis = null; - try - { - - File srcFile = new File(src); - if (srcFile.exists()) { - - Properties props = new Properties(); - fis = new FileInputStream(src); - props.load(new java.io.BufferedInputStream(fis)); - fis.close(); - - int i = 0; - Enumeration plist = props.propertyNames(); - if (plist != null) { - while (plist.hasMoreElements()) { - Map map = new HashMap(); - String key = (String)plist.nextElement(); - map.put(key, props.getProperty(key)); - keyList.add(map); - } - } - } - } catch (Exception ex){ - debug("EX:"+ex); - } finally { - try { - if (fis != null) fis.close(); - } catch (Exception ex) { - debug("EX:"+ex);//ex.printStackTrace(); - } - } - - return keyList; - } - - /** - * 시스템 로그를 출력한다. - * @param obj Object - */ - private static void debug(Object obj) { - if (obj instanceof Exception) { - //((Exception)obj).printStackTrace(); - //System.out.println("DEBUG: " + obj); // 2011.10.10 보안점검 후속조치 - log.debug("IGNORED: {}", ((Exception)obj).getMessage()); - } - } -} - diff --git a/src/main/java/cokr/xit/fims/framework/core/utils/pagination/XitPaginationInfo.java b/src/main/java/cokr/xit/fims/framework/core/utils/pagination/XitPaginationInfo.java deleted file mode 100644 index 813f0479..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/utils/pagination/XitPaginationInfo.java +++ /dev/null @@ -1,51 +0,0 @@ -package cokr.xit.fims.framework.core.utils.pagination; - -import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; - -/** - * - * @업무그룹명: paging 처리를 위한 VO - * @설명: Grid 컴포넌트 및 기존 코드를 병행 활용하기 위해 PaginationInfo 클래스를 상속 받아 사용한ㄷ. - * @최초작성일: 2020. 5. 26. 오전 9:11:58 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -public class XitPaginationInfo extends PaginationInfo{ - - /* ************************* - * tui Grid Paging 필드 - ************************* */ - /** 현재 페이지 */ - private int pageNum = -1; - /** 모든 로우들의 개수(=조회 총 건수) */ - private int totalSize = -1; - /* ************************* - * //tui Grid Paging 필드 - ************************* */ - - - /** [tui Grid] 현재 페이지를 반환 한다. */ - public int getPageNum() { - return pageNum; - } - /** [tui Grid] 현재 페이지를 설정 한다. */ - public void setPageNum(int pageNum) { - this.pageNum = pageNum; - super.setCurrentPageNo(pageNum); - } - /** [tui Grid] 조회 총 건수를 설정 한다. */ - public int getTotalSize() { - return totalSize; - } - /** [tui Grid] 조회 총 건수를 반환 한다. */ - public void setTotalSize(int totalSize) { - this.totalSize = totalSize; - super.setTotalRecordCount(totalSize); - } - - - - -} diff --git a/src/main/java/cokr/xit/fims/framework/core/utils/pagination/XitPaginationRenderer.java b/src/main/java/cokr/xit/fims/framework/core/utils/pagination/XitPaginationRenderer.java deleted file mode 100644 index 293bf6cb..00000000 --- a/src/main/java/cokr/xit/fims/framework/core/utils/pagination/XitPaginationRenderer.java +++ /dev/null @@ -1,81 +0,0 @@ -package cokr.xit.fims.framework.core.utils.pagination; - -import org.egovframe.rte.ptl.mvc.tags.ui.pagination.AbstractPaginationRenderer; -import org.springframework.web.context.ServletContextAware; - -import javax.servlet.ServletContext; - -/** - * - * @업무그룹명: Page Rendedrer 클래스 - * @설명: - * @최초작성일: 2020. 4. 28. 오후 1:10:13 - * @최초작성자: 박민규 - * @author (주)엑스아이티 개발팀 - * @since 2002. 2. 2. - * @version 1.0 Copyright(c) XIT All rights reserved. - */ -public class XitPaginationRenderer extends AbstractPaginationRenderer implements ServletContextAware{ - - private ServletContext servletContext; - - String type ; - - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public XitPaginationRenderer() { - // no-op - } - - public void initVariables(){ - firstPageLabel = "처음페이지"; - previousPageLabel = "이전페이지"; - currentPageLabel = "{0}"; - otherPageLabel = "{2}"; - nextPageLabel = "다음페이지"; - lastPageLabel = "마지막페이지"; - - /* 처음페이지 - 이전페이지 - {0} - {2} - 다음페이지 - 마지막페이지 - */ -/*//이미지 방식 - firstPageLabel = "" + - "첫페이지 "; - previousPageLabel = "" + - "이전페이지 "; - currentPageLabel = "{0} "; - otherPageLabel = "{2} "; - nextPageLabel = "" + - "다음페이지 "; - lastPageLabel = "" + - "마지막페이지 "; - -*/ - /* - firstPageLabel = "\"처음\" "; - previousPageLabel = "\"이전\" "; - currentPageLabel = "{0} "; - otherPageLabel = "{2} "; - nextPageLabel = "\"다음\" "; - lastPageLabel = "\"마지막\" "; - */ - } - - @Override - public void setServletContext(ServletContext servletContext) { - this.servletContext = servletContext; - initVariables(); - } - -}