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 PerformanceTarget {
	private static final long serialVersionUID = 1L;

   private long recordId;//考核记录id

	private  String hierarchyname;
	private  String elementname;
	private  int pageSize;//每页多少个
	private  int pageCur;//当前页
	private  int totalPage;//一共多少页面
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long targetId;  //目标编号
	private Long elementId;  //指标编号
	private String actualTarget;// 实际值
	private String thresholdTarget;  //门槛值目标值
	private String atLeastTarget;  //保底目标值
	private String targetAverage;  //平均目标值
	private String screamTarget;  //尖叫目标值
	private String howlTarget;  //嚎叫目标值
	private String hierarchy;  //层级（区域/项目）
	private String hierarchyId;  //层级id
	private String frequency;  //考核频率
	private Integer year;  //年份
	private Integer month;  //月份
	private String quarterly;  //季度
	private double weight;  //权重
	private String isCheck;  //是否考核
	private String structParam;  //结构系数
	private Date createdDate;  //创建日期
	private String createdBy;  //创建人
	private Date updateDate;  //更新日期
	private String updateBy;  //更新人

	public PerformanceTarget() {
	}

	public PerformanceTarget(long recordId, String thresholdTarget, String atLeastTarget, String screamTarget, String howlTarget) {
		this.recordId = recordId;
		this.thresholdTarget = thresholdTarget;
		this.atLeastTarget = atLeastTarget;
		this.screamTarget = screamTarget;
		this.howlTarget = howlTarget;
	}

	public void setTargetId(Long targetId){
		this.targetId = targetId;
	}
	
	public Long getTargetId(){
		return targetId;
	}
	
	public void setElementId(Long elementId){
		this.elementId = elementId;
	}
	
	public Long getElementId(){
		return elementId;
	}
	
	public void setThresholdTarget(String thresholdTarget){
		this.thresholdTarget = thresholdTarget;
	}
	
	public String getThresholdTarget(){
		return thresholdTarget;
	}
	
	public void setAtLeastTarget(String atLeastTarget){
		this.atLeastTarget = atLeastTarget;
	}
	
	public String getAtLeastTarget(){
		return atLeastTarget;
	}

	public String getTargetAverage() {
		return targetAverage;
	}

	public void setTargetAverage(String targetAverage) {
		this.targetAverage = targetAverage;
	}

	public void setScreamTarget(String screamTarget){
		this.screamTarget = screamTarget;
	}
	
	public String getScreamTarget(){
		return screamTarget;
	}
	
	public void setHowlTarget(String howlTarget){
		this.howlTarget = howlTarget;
	}
	
	public String getHowlTarget(){
		return howlTarget;
	}
	
	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 void setFrequency(String frequency){
		this.frequency = frequency;
	}
	
	public String getFrequency(){
		return frequency;
	}
	
	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 String getQuarterly() {
		return quarterly;
	}

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

	public void setWeight(double weight){
		this.weight = weight;
	}
	
	public double getWeight(){
		return weight;
	}
	
	public void setIsCheck(String isCheck){
		this.isCheck = isCheck;
	}
	
	public String getIsCheck(){
		return isCheck;
	}

	public String getStructParam() {
		return structParam;
	}

	public void setStructParam(String structParam) {
		this.structParam = structParam;
	}

	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 static long getSerialVersionUID() {
		return serialVersionUID;
	}

	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 int getTotalPage() {
		return totalPage;
	}

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

	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 String getActualTarget() {
		return actualTarget;
	}

	public void setActualTarget(String actualTarget) {
		this.actualTarget = actualTarget;
	}

	public long getRecordId() {
		return recordId;
	}

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