Newer
Older
EMS-WEB-3.0 / src / main / java / com / casic / accessControl / sys / dto / OrclInfoDTO.java
wxn on 9 Aug 2016 3 KB first commit
//package com.casic.accessControl.sys.dto;
//
//import com.casic.accessControl.org.domain.UserInfo;
//import com.casic.accessControl.shp.domain.LayerInfo;
//import com.casic.accessControl.sys.domain.OrclInfo;
//import com.casic.accessControl.util.DateUtils;
//
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
///**
// * Created by Administrator on 2015/8/17.
// */
//public class OrclInfoDTO {
//    private Long id;
//    private String fileName;
//    private String filePath;
//    private String memo;
//    private String bkDay;
//    private Long userId;
//    private String userName;
//    private String btnRestor = "<a href='#' class='btn mini blue'>还原</a>";
//    private String btnDelete = "<a href='#' class='btn mini red'>删除</a>";
//
//    public Long getId() {
//        return id;
//    }
//
//    public void setId(Long id) {
//        this.id = id;
//    }
//
//    public String getFileName() {
//        return fileName;
//    }
//
//    public void setFileName(String fileName) {
//        this.fileName = fileName;
//    }
//
//    public String getFilePath() {
//        return filePath;
//    }
//
//    public void setFilePath(String filePath) {
//        this.filePath = filePath;
//    }
//
//    public String getMemo() {
//        return memo;
//    }
//
//    public void setMemo(String memo) {
//        this.memo = memo;
//    }
//
//    public String getBkDay() {
//        return bkDay;
//    }
//
//    public void setBkDay(String bkDay) {
//        this.bkDay = bkDay;
//    }
//
//    public Long getUserId() {
//        return userId;
//    }
//
//    public void setUserId(Long userId) {
//        this.userId = userId;
//    }
//
//    public String getUserName() {
//        return userName;
//    }
//
//    public void setUserName(String userName) {
//        this.userName = userName;
//    }
//
//    public String getBtnRestor() {
//        return btnRestor;
//    }
//
//    public void setBtnRestor(String btnRestor) {
//        this.btnRestor = btnRestor;
//    }
//
//    public String getBtnDelete() {
//        return btnDelete;
//    }
//
//    public void setBtnDelete(String btnDelete) {
//        this.btnDelete = btnDelete;
//    }
//
//    public static OrclInfoDTO ConvertToDTO(OrclInfo orcl){
//        if(null!=orcl){
//            OrclInfoDTO dto = new OrclInfoDTO();
//            dto.setId(orcl.getId());
//            dto.setFileName(orcl.getFileName());
//            dto.setFilePath(orcl.getFilePath());
//            dto.setMemo(orcl.getMemo());
//            if(null!=orcl.getBkDay()){
//                dto.setBkDay(DateUtils.sdf1.format(orcl.getBkDay()));
//            }
//            if(null!=orcl.getUserInfo()){
//                dto.setUserId(orcl.getUserInfo().getId());
//                dto.setUserName(orcl.getUserInfo().getUsername());
//            }
//            return dto;
//        }
//        return new OrclInfoDTO();
//    }
//
//    public static List<OrclInfoDTO> ConvertToDTO(List<OrclInfo> list){
//        List<OrclInfoDTO> dtoList = new ArrayList<OrclInfoDTO>();
//        for(OrclInfo orcl : list){
//            dtoList.add(ConvertToDTO(orcl));
//        }
//        return dtoList;
//    }
//}