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

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

/**
 * 指标得分
 *
 * @author leo 严明斌
 * @version 2018-4-3 16:58:32
 */

public class PerformanceScore {
    private static final long serialVersionUID = 1L;

    private long recordId;
    private String hierarchyname;
    private String elementname;
    private int pageSize;//每页多少个
    private int pageCur;//当前页
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long scoreId;    //得分编号
    private Long elementId;    //指标编号
    private float score;    //二级指标为细项得分，一级为单项得分
    private float actualScore;    //加权得分
    private String type;    //数值，百分比型
    private float complete;    //完成值
    private String squareNo;    //方阵序号
    private float yearlyScore;    //年度值
    private float quarterlyScore; //季度值
    private Integer year;    //年份
    private Integer month;    //月份
    private String quarterly;    //季度
    private String hierarchy;    //层级（区域/项目）
    private String hierarchyId;    //层级id
    private Integer num;    //排名
    private boolean isProfitReach;    //税前利润是否达标

    public PerformanceScore() {
    }

    public PerformanceScore(long recordId, float score, float complete, float yearlyScore) {
        this.recordId = recordId;
        this.score = score;
        this.complete = complete;
        this.yearlyScore = yearlyScore;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    private Date createdDate;    //创建日期
    private String createdBy;    //创建人
    private Date updateDate;    //更新日期
    private String updateBy;    //更新人
    private int totalPage;//一共多少页面

    public void setScoreId(Long scoreId) {
        this.scoreId = scoreId;
    }

    public Long getScoreId() {
        return scoreId;
    }

    public void setElementId(Long elementId) {
        this.elementId = elementId;
    }

    public Long getElementId() {
        return elementId;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public float getScore() {
        return score;
    }

    public void setActualScore(float actualScore) {
        this.actualScore = actualScore;
    }

    public float getActualScore() {
        return actualScore;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setComplete(float complete) {
        this.complete = complete;
    }

    public float getComplete() {
        return complete;
    }

    public void setSquareNo(String squareNo) {
        this.squareNo = squareNo;
    }

    public String getSquareNo() {
        return squareNo;
    }

    public float getYearlyScore() {
        return yearlyScore;
    }

    public void setYearlyScore(float yearlyScore) {
        this.yearlyScore = yearlyScore;
    }

    public float getQuarterlyScore() {
        return quarterlyScore;
    }

    public void setQuarterlyScore(float quarterlyScore) {
        this.quarterlyScore = quarterlyScore;
    }

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

    public Integer getYear() {
        return year;
    }

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

    public Integer getMonth() {
        return month;
    }

    public void setQuarterly(String quarterly) {
        this.quarterly = quarterly;
    }

    public String getQuarterly() {
        return quarterly;
    }

    public void setHierarchy(String hierarchy) {
        this.hierarchy = hierarchy;
    }

    public String getHierarchy() {
        return hierarchy;
    }

    public void setHierarchyId(String hierarchyId) {
        this.hierarchyId = hierarchyId;
    }

    public String getHierarchyId() {
        return hierarchyId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public boolean isProfitReach() {
        return isProfitReach;
    }

    public void setProfitReach(boolean profitReach) {
        isProfitReach = profitReach;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() {
        return createdBy;
    }

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

    public Date getUpdateDate() {
        return updateDate;
    }

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

    public String getUpdateBy() {
        return updateBy;
    }

    public String getHierarchyname() {
        return hierarchyname;
    }

    public void setHierarchyname(String hierarchyname) {
        this.hierarchyname = hierarchyname;
    }

    public String getElementname() {
        return elementname;
    }

    public void setElementname(String elementname) {
        this.elementname = elementname;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageCur() {
        return pageCur;
    }

    public void setPageCur(int pageCur) {
        this.pageCur = pageCur;
    }

    public long getRecordId() {
        return recordId;
    }

    public void setRecordId(long recordId) {
        this.recordId = recordId;
    }
}