package cn.com.countrygarden.bi.main.model.excontract;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

public class ContractRecord {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Integer id;

    private String organName;

    private String organCode;

    private String commname;

    private String commid;

    private String groupName;

    private String groupCode;

    private String contractName;

    private String contractCode;

    private String supplierName;

    private String supplierCode;

    private String exCode;

    private String exContent;

    private double otherScore;

    private BigDecimal otherMoney;

    private String otherDescribe;

    private BigDecimal rewardMoney;

    private double rewardScore;

    private String rewardDescribe;

    private double totalScore;

    private double totalGrade;

    private BigDecimal totalMoney;

    private BigDecimal breakMoney;

//    private BigDecimal otherBreakMoney;

    private BigDecimal monthContractMoney;

    private BigDecimal actualContractMoney;

    private String createBy;

    private String createDate;

    private String updateBy;

    private String updateDate;

    private String year;

    private String month;

    private int isDelete;

    public double getRewardScore() {
        return rewardScore;
    }

    public void setRewardScore(double rewardScore) {
        this.rewardScore = rewardScore;
    }

    public double getOtherScore() {
        return otherScore;
    }

    public void setOtherScore(double otherScore) {
        this.otherScore = otherScore;
    }

    public String getExContent() {
        return exContent;
    }

    public void setExContent(String exContent) {
        this.exContent = exContent;
    }

    public double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(double totalScore) {
        this.totalScore = totalScore;
    }

    public double getTotalGrade() {
        return totalGrade;
    }

    public void setTotalGrade(double totalGrade) {
        this.totalGrade = totalGrade;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public BigDecimal getTotalMoney() {
        if(totalMoney == null) return new BigDecimal(0);
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public String getOrganCode() {
        return organCode;
    }

    public void setOrganCode(String organCode) {
        this.organCode = organCode;
    }

    public String getCommname() {
        return commname;
    }

    public void setCommname(String commname) {
        this.commname = commname;
    }

    public String getCommid() {
        return commid;
    }

    public void setCommid(String commid) {
        this.commid = commid;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getExCode() {
        return exCode;
    }

    public void setExCode(String exCode) {
        this.exCode = exCode;
    }

    public BigDecimal getOtherMoney() {
        if(otherMoney == null) return new BigDecimal(0);
        return otherMoney;
    }

    public void setOtherMoney(BigDecimal otherMoney) {
        this.otherMoney = otherMoney;
    }

    public String getOtherDescribe() {
        return otherDescribe;
    }

    public void setOtherDescribe(String otherDescribe) {
        this.otherDescribe = otherDescribe;
    }

    public BigDecimal getRewardMoney() {
        if(rewardMoney == null) return new BigDecimal(0);
        return rewardMoney;
    }

    public void setRewardMoney(BigDecimal rewardMoney) {
        this.rewardMoney = rewardMoney;
    }

    public String getRewardDescribe() {
        return rewardDescribe;
    }

    public void setRewardDescribe(String rewardDescribe) {
        this.rewardDescribe = rewardDescribe;
    }

    public BigDecimal getBreakMoney() {
        if(breakMoney == null) return new BigDecimal(0);
        return breakMoney;
    }

    public void setBreakMoney(BigDecimal breakMoney) {
        this.breakMoney = breakMoney;
    }

//    public BigDecimal getOtherBreakMoney() {
//        if(otherBreakMoney == null) return new BigDecimal(0);
//        return otherBreakMoney;
//    }

//    public void setOtherBreakMoney(BigDecimal otherBreakMoney) {
//        this.otherBreakMoney = otherBreakMoney;
//    }

    public BigDecimal getMonthContractMoney() {
        if(monthContractMoney == null) return new BigDecimal(0);
        return monthContractMoney;
    }

    public void setMonthContractMoney(BigDecimal monthContractMoney) {
        this.monthContractMoney = monthContractMoney;
    }

    public BigDecimal getActualContractMoney() {
        if(actualContractMoney == null) return new BigDecimal(0);
        return actualContractMoney;
    }

    public void setActualContractMoney(BigDecimal actualContractMoney) {
        this.actualContractMoney = actualContractMoney;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateDate() {
        if(createDate != null && createDate.length() == 21) createDate = createDate.substring(0,19);
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateDate() {
        if(updateDate != null && updateDate.length() == 21) updateDate = updateDate.substring(0,19);
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }
}