package com.goafanti.order.bo;

import java.math.BigDecimal;
import java.util.List;

import com.goafanti.core.shiro.token.TokenManager;

public class TOrderTaskListBo {
	private Integer id;
	private String taskName;
	private String orderNo;
	private String userName;
	private String cname;
	private String receiverName;
	private Integer projectStatus;
	private Integer taskStatus;
	private String taskDate;
	private Integer commodityQuantity;
	private BigDecimal commodityPrice;
	private Double hours;
	private String depName;
	private String contractNo;
	private String creteTime;
	private String signTime;
	private Integer alreadyNumber;
	private String salesmanName;
	private String taskDistributionTime;
	private String taskEndTime;
	private Integer approval;
	private Integer outsource;
	/** 外包部门 */
	private String outsourceName;
	private Integer outsourceStatus;
	private Integer outsourceType;
	private Integer splitStatus;
	private String	splitSuper;
	private Integer splitId;
	private Integer projectType;
	private String splitTimes;
	private String splitAname;
	private String taskReceiver;
	private List<TOrderTaskListBo> splitList;
	//判断是不是自己的单 0 是 1否
	//private Integer distributeSign;
	
	private BigDecimal costAmount;
	private BigDecimal partyAmount;
	public String getSplitSuper() {
		return splitSuper;
	}
	public void setSplitSuper(String splitSuper) {
		this.splitSuper = splitSuper;
	}
	public String getSplitTimes() {
		return splitTimes;
	}
	public void setSplitTimes(String splitTimes) {
		this.splitTimes = splitTimes;
	}
	public String getSplitAname() {
		return splitAname;
	}
	public void setSplitAname(String splitAname) {
		this.splitAname = splitAname;
	}
	public String getContractNo() {
		return contractNo;
	}
	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}
	public String getCreteTime() {
		return creteTime;
	}
	public void setCreteTime(String creteTime) {
		this.creteTime = creteTime;
	}
	public String getSignTime() {
		return signTime;
	}
	public void setSignTime(String signTime) {
		this.signTime = signTime;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getReceiverName() {
		return receiverName;
	}
	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}
	public Integer getProjectStatus() {
		return projectStatus;
	}
	public void setProjectStatus(Integer projectStatus) {
		this.projectStatus = projectStatus;
	}
	public Integer getTaskStatus() {
		return taskStatus;
	}
	public void setTaskStatus(Integer taskStatus) {
		this.taskStatus = taskStatus;
	}
	public String getTaskDate() {
		return taskDate;
	}
	public void setTaskDate(String taskDate) {
		this.taskDate = taskDate;
	}
	public Integer getCommodityQuantity() {
		return commodityQuantity;
	}
	public void setCommodityQuantity(Integer commodityQuantity) {
		this.commodityQuantity = commodityQuantity;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Double getHours() {
		return hours;
	}
	public void setHours(Double hours) {
		this.hours = hours;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public Integer getAlreadyNumber() {
		return alreadyNumber;
	}
	public void setAlreadyNumber(Integer alreadyNumber) {
		this.alreadyNumber = alreadyNumber;
	}
	public String getOutsourceName() {
		return outsourceName;
	}
	public void setOutsourceName(String outsourceName) {
		this.outsourceName = outsourceName;
	}
	public String getTaskDistributionTime() {
		return taskDistributionTime;
	}
	public void setTaskDistributionTime(String taskDistributionTime) {
		this.taskDistributionTime = taskDistributionTime;
	}
	public String getTaskEndTime() {
		return taskEndTime;
	}
	public void setTaskEndTime(String taskEndTime) {
		this.taskEndTime = taskEndTime;
	}
	public BigDecimal getCommodityPrice() {
		return commodityPrice;
	}
	public void setCommodityPrice(BigDecimal commodityPrice) {
		this.commodityPrice = commodityPrice;
	}
	public String getSalesmanName() {
		return salesmanName;
	}
	public void setSalesmanName(String salesmanName) {
		this.salesmanName = salesmanName;
	}
	public Integer getApproval() {
		return approval;
	}
	public void setApproval(Integer approval) {
		this.approval = approval;
	}
	public Integer getOutsource() {
		return outsource;
	}
	public void setOutsource(Integer outsource) {
		this.outsource = outsource;
	}
	public Integer getOutsourceStatus() {
		return outsourceStatus;
	}
	public void setOutsourceStatus(Integer outsourceStatus) {
		this.outsourceStatus = outsourceStatus;
	}
	public Integer getSplitStatus() {
		return splitStatus;
	}
	public void setSplitStatus(Integer splitStatus) {
		this.splitStatus = splitStatus;
	}
	public List<TOrderTaskListBo> getSplitList() {
		return splitList;
	}
	public void setSplitList(List<TOrderTaskListBo> splitList) {
		this.splitList = splitList;
	}
	public Integer getDistributeSign() {
		if (TokenManager.getAdminId().equals(getTaskReceiver())) {
			return 0;
		}
		return 1;
	}
	public String getTaskReceiver() {
		return taskReceiver;
	}
	public void setTaskReceiver(String taskReceiver) {
		this.taskReceiver = taskReceiver;
	}
	public Integer getSplitId() {
		return splitId;
	}
	public void setSplitId(Integer splitId) {
		this.splitId = splitId;
	}
	public Integer getProjectType() {
		return projectType;
	}
	public void setProjectType(Integer projectType) {
		this.projectType = projectType;
	}
	public BigDecimal getCostAmount() {
		return costAmount;
	}
	public void setCostAmount(BigDecimal costAmount) {
		this.costAmount = costAmount;
	}
	public BigDecimal getPartyAmount() {
		return partyAmount;
	}
	public void setPartyAmount(BigDecimal partyAmount) {
		this.partyAmount = partyAmount;
	}
	public Integer getOutsourceType() {
		return outsourceType;
	}
	public void setOutsourceType(Integer outsourceType) {
		this.outsourceType = outsourceType;
	}
	
	
}
