package com.nanometer.smartlab.entity;
|
|
import com.nanometer.smartlab.entity.enumtype.ApplyStatus;
|
import com.nanometer.smartlab.entity.enumtype.ValidFlag;
|
import com.nanometer.smartlab.util.Validator;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.sql.Timestamp;
|
import java.util.*;
|
|
/**
|
* Created by johnny on 17/11/23.
|
*/
|
public class OpeApply implements Serializable,Comparable<OpeApply> {
|
|
private String first;
|
private String second;
|
|
public String getFirst() {
|
return first;
|
}
|
|
public void setFirst(String first) {
|
this.first = first;
|
}
|
|
public String getSecond() {
|
return second;
|
}
|
|
public void setSecond(String second) {
|
this.second = second;
|
}
|
|
private String firName;
|
private String firstUser;
|
|
public String getFirName() {
|
return firName;
|
}
|
|
public void setFirName(String firName) {
|
this.firName = firName;
|
}
|
|
public String getFirstUser() {
|
return firstUser;
|
}
|
|
public void setFirstUser(String firstUser) {
|
this.firstUser = firstUser;
|
}
|
|
private String id;
|
private String applyCode;
|
private Integer num;
|
private Timestamp deadline;
|
private String applyUserId;
|
private String objective;
|
private ApplyStatus status;
|
private Timestamp createTime;
|
private Timestamp updateTime;
|
private ValidFlag validFlag;
|
private String approveUserId;
|
private String beforeApproveUserId;
|
private String memo;
|
private SysReagent reagent;
|
|
private String applyUserName;
|
|
private String approveUserName;
|
|
private String secondUserName;
|
|
public String getSecondUserName() {
|
return secondUserName;
|
}
|
|
public void setSecondUserName(String secondUserName) {
|
this.secondUserName = secondUserName;
|
}
|
|
// 用于订单入库的时候表格编辑字段
|
private Integer arrivalNum;
|
private String articleNumber;
|
private String startReagentCode;
|
private String endReagentCode;
|
private List<String> reagentCodeList;
|
private String houseId;
|
private String containerId;
|
private String placeId;
|
|
private String projectName;
|
private String projectId;
|
private String projectOwner;
|
private String ownerDepartment;
|
|
private String applyGoal;
|
private BigDecimal applyPrice;
|
private int stockFlag;
|
private String stockFlagValue;
|
//用于存放仓库 和仓库货柜的id
|
private String warehouseId;
|
private String warehouseContainerId;
|
|
public String getStockFlagValue() {
|
return stockFlagValue;
|
}
|
|
public void setStockFlagValue(String stockFlagValue) {
|
this.stockFlagValue = stockFlagValue;
|
}
|
|
public int getStockFlag() {
|
return stockFlag;
|
}
|
|
public void setStockFlag(int stockFlag) {
|
this.stockFlag = stockFlag;
|
}
|
|
public BigDecimal getApplyPrice() {
|
return applyPrice;
|
}
|
|
public void setApplyPrice(BigDecimal applyPrice) {
|
this.applyPrice = applyPrice;
|
}
|
|
public String getApplyGoal() {
|
return applyGoal;
|
}
|
|
public void setApplyGoal(String applyGoal) {
|
this.applyGoal = Validator.filter(applyGoal);
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getApplyCode() {
|
return applyCode;
|
}
|
|
public void setApplyCode(String applyCode) {
|
this.applyCode = applyCode;
|
}
|
|
public Integer getNum() {
|
return num;
|
}
|
|
public void setNum(Integer num) {
|
this.num = Integer.parseInt(Validator.filter(num.toString()));
|
}
|
|
public String getApplyUserId() {
|
return applyUserId;
|
}
|
|
public void setApplyUserId(String applyUserId) {
|
this.applyUserId = applyUserId;
|
}
|
|
public String getObjective() {
|
return objective;
|
}
|
|
public void setObjective(String objective) {
|
this.objective = Validator.filter(objective);
|
}
|
|
public Timestamp getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Timestamp createTime) {
|
this.createTime = createTime;
|
}
|
|
public Timestamp getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Timestamp updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public ValidFlag getValidFlag() {
|
return validFlag;
|
}
|
|
public void setValidFlag(ValidFlag validFlag) {
|
this.validFlag = validFlag;
|
}
|
|
public String getApproveUserId() {
|
return approveUserId;
|
}
|
public String getBeforeApproveUserId(){
|
return beforeApproveUserId;
|
}
|
|
public void setBeforeApproveUserId(String beforeApproveUserId){
|
this.beforeApproveUserId=beforeApproveUserId;
|
}
|
public void setApproveUserId(String approveUserId) {
|
this.approveUserId = Validator.filter(approveUserId);
|
}
|
|
public String getMemo() {
|
return memo;
|
}
|
|
public void setMemo(String memo) {
|
this.memo = memo;
|
}
|
|
public Timestamp getDeadline() {
|
return deadline;
|
}
|
|
public void setDeadline(Timestamp deadline) {
|
this.deadline = deadline;
|
}
|
|
public ApplyStatus getStatus() {
|
return status;
|
}
|
|
public void setStatus(ApplyStatus status) {
|
this.status = status;
|
}
|
|
public SysReagent getReagent() {
|
return reagent;
|
}
|
|
public void setReagent(SysReagent reagent) {
|
this.reagent = reagent;
|
}
|
|
public String getApplyUserName() {
|
return applyUserName;
|
}
|
|
public void setApplyUserName(String applyUserName) {
|
this.applyUserName = applyUserName;
|
}
|
|
public Integer getArrivalNum() {
|
return arrivalNum;
|
}
|
|
public void setArrivalNum(Integer arrivalNum) {
|
this.arrivalNum = arrivalNum;
|
}
|
|
public String getArticleNumber() {
|
return articleNumber;
|
}
|
|
public void setArticleNumber(String articleNumber) {
|
this.articleNumber = articleNumber;
|
}
|
|
public String getStartReagentCode() {
|
return startReagentCode;
|
}
|
|
public void setStartReagentCode(String startReagentCode) {
|
this.startReagentCode = startReagentCode;
|
}
|
|
public String getEndReagentCode() {
|
return endReagentCode;
|
}
|
|
public void setEndReagentCode(String endReagentCode) {
|
this.endReagentCode = endReagentCode;
|
}
|
|
public String getHouseId() {
|
return houseId;
|
}
|
|
public void setHouseId(String houseId) {
|
this.houseId = houseId;
|
}
|
|
public String getContainerId() {
|
return containerId;
|
}
|
|
public void setContainerId(String containerId) {
|
this.containerId = containerId;
|
}
|
|
public String getPlaceId() {
|
return placeId;
|
}
|
|
public void setPlaceId(String placeId) {
|
this.placeId = placeId;
|
}
|
|
public String getApproveUserName() {
|
return approveUserName;
|
}
|
|
public void setApproveUserName(String approveUserName) {
|
this.approveUserName = approveUserName;
|
}
|
|
public String getProjectName() {
|
return projectName;
|
}
|
|
public void setProjectName(String projectName) {
|
this.projectName = projectName;
|
}
|
|
public String getProjectId() {
|
return projectId;
|
}
|
|
public void setProjectId(String projectId) {
|
this.projectId = projectId;
|
}
|
|
public List<String> getReagentCodeList() {
|
return reagentCodeList;
|
}
|
|
public void setReagentCodeList(List<String> reagentCodeList) {
|
this.reagentCodeList = reagentCodeList;
|
}
|
|
public String getProjectOwner() {
|
return projectOwner;
|
}
|
|
public void setProjectOwner(String projectOwner) {
|
this.projectOwner = projectOwner;
|
}
|
|
|
|
public String getOwnerDepartment() {
|
return ownerDepartment;
|
}
|
|
public void setOwnerDepartment(String ownerDepartment) {
|
this.ownerDepartment = ownerDepartment;
|
}
|
|
public String getWarehouseId() {
|
return warehouseId;
|
}
|
|
public void setWarehouseId(String warehouseId) {
|
this.warehouseId = warehouseId;
|
}
|
|
public String getWarehouseContainerId() {
|
return warehouseContainerId;
|
}
|
|
public void setWarehouseContainerId(String warehouseContainerId) {
|
this.warehouseContainerId = warehouseContainerId;
|
}
|
|
@Override
|
public int compareTo(OpeApply o) {
|
if(this.projectOwner == null || o.getProjectOwner() == null){
|
return 1;
|
}
|
if(this.projectOwner.compareTo(o.getProjectOwner()) == -1)
|
{
|
return 1;
|
}else
|
{
|
return -1;
|
}
|
}
|
|
@Override
|
public String toString() {
|
final StringBuilder sb = new StringBuilder("OpeApply{");
|
sb.append("firName='").append(firName).append('\'');
|
sb.append(", firstUser='").append(firstUser).append('\'');
|
sb.append(", approveUserId='").append(approveUserId).append('\'');
|
sb.append(", beforeApproveUserId='").append(beforeApproveUserId).append('\'');
|
sb.append(", approveUserName='").append(approveUserName).append('\'');
|
sb.append(", secondUserName='").append(secondUserName).append('\'');
|
sb.append('}');
|
return sb.toString();
|
}
|
}
|