LotStepHistory.java

package com.mycim.valueobject.wip;

import com.mycim.utils.WipUtils;

import java.io.Serializable;

public class LotStepHistory implements Serializable {

    private Long lotRrn;

    private Long stepSequence;

    private Long facilityRrn;

    private String lotId;

    private Long productRrn;

    private String productId;

    private Integer productVersion;

    private Long processRrn;

    private String processId;

    private Integer processVersion;

    private String processStepVersion;

    private String processStepIdVersion;

    private Long routeRrn;

    private Integer routeVersion;

    private Long operationRrn;

    private String operationId;

    private Integer operationVersion;

    private Long subcontractorRrn;

    private String stageId;

    private String layerId;

    private Long carrierRrn;

    private String carrierId;

    private Long carrierMapRrn;

    private Long runRrn;

    private Long eqptRrn;

    private String eqptId;

    private String recipeString;

    private Long reticleRrn;

    private String reticleId;

    private Long binRrn;

    private Long moveInDcolRrn;

    private Long moveOutDcolRrn;

    private Long adHocDcolRrn;

    private String reworkFlag;

    private Integer splitQty1;

    private Integer splitQty2;

    private Integer mergeQty1;

    private Integer mergeQty2;

    private Integer lossQty1;

    private Integer lossQty2;

    private Integer bonusQty1;

    private Integer bonusQty2;

    private Integer scrapQty1;

    private Integer scrapQty2;

    private Integer defectiveQty1;

    private Integer defectiveQty2;

    private Integer internalReworkQty1;

    private Integer internalReworkQty2;

    private String trackUnitFlag;

    private Integer inQty1;

    private Integer inQty2;

    private Integer outQty1;

    private Integer outQty2;

    private Integer moveInQty1;

    private Integer moveInQty2;

    private Integer moveOutQty1;

    private Integer moveOutQty2;

    private Integer externalReworkQty1;

    private Integer externalReworkQty2;

    private String loadPosition;

    private Long stepTransRrn;

    private String chamberType;

    private String operationSeq;

    private String pollutionLevel;

    private String routeSeq;

    private String productLayer;

    private String hotFlag;

    private Long priority;

    private String createCategory;

    private String parameter;

    private String parameterValue;

    private String operationDesc;

    private String stepType;

    private String workArea;

    private String flowSeq;

    private String eqptGroup;

    private Long eqptGroupRrn;

    private String processLocation;

    private String customerId;

    private String shippingCode;

    private String outerOrderNo;

    private String outOrderType;

    private String recycleStepInfo;       // 流程.流程版本|开始工序.开始工步|结束工序.结束工步|循环次数.循环最大次数

    private String recycleStepIdInfo;

    private Long recipeGroupRrn;

    private Long recipeGroupVersion;

    private Long recipeLogicalRrn;

    private Long recipeLogicalVersion;

    private String recipePhysicalId;

    private String pollutionLevelAfter;

    private String flipType;

    public LotStepHistory() {

    }

    public LotStepHistory(Long lotRrn, Long stepSequence) {
        this.lotRrn = lotRrn;
        this.stepSequence = stepSequence;

    }

    public Long getLotRrn() {
        return lotRrn;
    }

    public void setLotRrn(Long lotRrn) {
        this.lotRrn = lotRrn;
    }

    public Long getStepSequence() {
        return stepSequence;
    }

    public void setStepSequence(Long stepSequence) {
        this.stepSequence = stepSequence;
    }

    public Long getFacilityRrn() {
        return facilityRrn;
    }

    public void setFacilityRrn(Long facilityRrn) {
        this.facilityRrn = facilityRrn;
    }

    public String getLotId() {
        return lotId;
    }

    public void setLotId(String lotId) {
        this.lotId = lotId;
    }

    public Long getProductRrn() {
        return productRrn;
    }

    public void setProductRrn(Long productRrn) {
        this.productRrn = productRrn;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(Integer productVersion) {
        this.productVersion = productVersion;
    }

    public Long getProcessRrn() {
        return processRrn;
    }

    public void setProcessRrn(Long processRrn) {
        this.processRrn = processRrn;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public Integer getProcessVersion() {
        return processVersion;
    }

    public void setProcessVersion(Integer processVersion) {
        this.processVersion = processVersion;
    }

    public String getProcessStepVersion() {
        return processStepVersion;
    }

    public void setProcessStepVersion(String processStepVersion) {
        this.processStepVersion = processStepVersion;
    }

    public String getProcessStepIdVersion() {
        return processStepIdVersion;
    }

    public void setProcessStepIdVersion(String processStepIdVersion) {
        this.processStepIdVersion = processStepIdVersion;
    }

    public Long getRouteRrn() {
        if (this.routeRrn == null || this.routeRrn < 0) {

            return WipUtils.getRouteRrnByProcessStep(processStepVersion);

        } else {
            return routeRrn;
        }
    }

    public void setRouteRrn(Long routeRrn) {
        this.routeRrn = routeRrn;

    }

    public Integer getRouteVersion() {
        return routeVersion;
    }

    public void setRouteVersion(Integer routeVersion) {
        this.routeVersion = routeVersion;
    }

    public Long getOperationRrn() {
        return operationRrn;
    }

    public void setOperationRrn(Long operationRrn) {
        this.operationRrn = operationRrn;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public Integer getOperationVersion() {
        return operationVersion;
    }

    public void setOperationVersion(Integer operationVersion) {
        this.operationVersion = operationVersion;
    }

    public Long getSubcontractorRrn() {
        return subcontractorRrn;
    }

    public void setSubcontractorRrn(Long subcontractorRrn) {
        this.subcontractorRrn = subcontractorRrn;
    }

    public String getStageId() {
        return stageId;
    }

    public void setStageId(String stageId) {
        this.stageId = stageId;
    }

    public String getLayerId() {
        return layerId;
    }

    public void setLayerId(String layerId) {
        this.layerId = layerId;
    }

    public Long getCarrierRrn() {
        return carrierRrn;
    }

    public void setCarrierRrn(Long carrierRrn) {
        this.carrierRrn = carrierRrn;
    }

    public String getCarrierId() {
        return carrierId;
    }

    public void setCarrierId(String carrierId) {
        this.carrierId = carrierId;
    }

    public Long getCarrierMapRrn() {
        return carrierMapRrn;
    }

    public void setCarrierMapRrn(Long carrierMapRrn) {
        this.carrierMapRrn = carrierMapRrn;
    }

    public Long getRunRrn() {
        return runRrn;
    }

    public void setRunRrn(Long runRrn) {
        this.runRrn = runRrn;
    }

    public Long getEqptRrn() {
        return eqptRrn;
    }

    public void setEqptRrn(Long eqptRrn) {
        this.eqptRrn = eqptRrn;
    }

    public String getEqptId() {
        return eqptId;
    }

    public void setEqptId(String eqptId) {
        this.eqptId = eqptId;
    }

    public String getRecipeString() {
        return recipeString;
    }

    public void setRecipeString(String recipeString) {
        this.recipeString = recipeString;
    }

    public Long getReticleRrn() {
        return reticleRrn;
    }

    public void setReticleRrn(Long reticleRrn) {
        this.reticleRrn = reticleRrn;
    }

    public String getReticleId() {
        return reticleId;
    }

    public void setReticleId(String reticleId) {
        this.reticleId = reticleId;
    }

    public Long getBinRrn() {
        return binRrn;
    }

    public void setBinRrn(Long binRrn) {
        this.binRrn = binRrn;
    }

    public Long getMoveInDcolRrn() {
        return moveInDcolRrn;
    }

    public void setMoveInDcolRrn(Long moveInDcolRrn) {
        this.moveInDcolRrn = moveInDcolRrn;
    }

    public Long getMoveOutDcolRrn() {
        return moveOutDcolRrn;
    }

    public void setMoveOutDcolRrn(Long moveOutDcolRrn) {
        this.moveOutDcolRrn = moveOutDcolRrn;
    }

    public Long getAdHocDcolRrn() {
        return adHocDcolRrn;
    }

    public void setAdHocDcolRrn(Long adHocDcolRrn) {
        this.adHocDcolRrn = adHocDcolRrn;
    }

    public String getReworkFlag() {
        return reworkFlag;
    }

    public void setReworkFlag(String reworkFlag) {
        this.reworkFlag = reworkFlag;
    }

    public Integer getSplitQty1() {
        return splitQty1;
    }

    public void setSplitQty1(Integer splitQty1) {
        this.splitQty1 = splitQty1;
    }

    public Integer getSplitQty2() {
        return splitQty2;
    }

    public void setSplitQty2(Integer splitQty2) {
        this.splitQty2 = splitQty2;
    }

    public Integer getMergeQty1() {
        return mergeQty1;
    }

    public void setMergeQty1(Integer mergeQty1) {
        this.mergeQty1 = mergeQty1;
    }

    public Integer getMergeQty2() {
        return mergeQty2;
    }

    public void setMergeQty2(Integer mergeQty2) {
        this.mergeQty2 = mergeQty2;
    }

    public Integer getLossQty1() {
        return lossQty1;
    }

    public void setLossQty1(Integer lossQty1) {
        this.lossQty1 = lossQty1;
    }

    public Integer getLossQty2() {
        return lossQty2;
    }

    public void setLossQty2(Integer lossQty2) {
        this.lossQty2 = lossQty2;
    }

    public Integer getBonusQty1() {
        return bonusQty1;
    }

    public void setBonusQty1(Integer bonusQty1) {
        this.bonusQty1 = bonusQty1;
    }

    public Integer getBonusQty2() {
        return bonusQty2;
    }

    public void setBonusQty2(Integer bonusQty2) {
        this.bonusQty2 = bonusQty2;
    }

    public Integer getScrapQty1() {
        return scrapQty1;
    }

    public void setScrapQty1(Integer scrapQty1) {
        this.scrapQty1 = scrapQty1;
    }

    public Integer getScrapQty2() {
        return scrapQty2;
    }

    public void setScrapQty2(Integer scrapQty2) {
        this.scrapQty2 = scrapQty2;
    }

    public Integer getDefectiveQty1() {
        return defectiveQty1;
    }

    public void setDefectiveQty1(Integer defectiveQty1) {
        this.defectiveQty1 = defectiveQty1;
    }

    public Integer getDefectiveQty2() {
        return defectiveQty2;
    }

    public void setDefectiveQty2(Integer defectiveQty2) {
        this.defectiveQty2 = defectiveQty2;
    }

    public Integer getInternalReworkQty1() {
        return internalReworkQty1;
    }

    public void setInternalReworkQty1(Integer internalReworkQty1) {
        this.internalReworkQty1 = internalReworkQty1;
    }

    public Integer getInternalReworkQty2() {
        return internalReworkQty2;
    }

    public void setInternalReworkQty2(Integer internalReworkQty2) {
        this.internalReworkQty2 = internalReworkQty2;
    }

    public String getTrackUnitFlag() {
        return trackUnitFlag;
    }

    public void setTrackUnitFlag(String trackUnitFlag) {
        this.trackUnitFlag = trackUnitFlag;
    }

    public Integer getInQty1() {
        return inQty1;
    }

    public void setInQty1(Integer inQty1) {
        this.inQty1 = inQty1;
    }

    public Integer getInQty2() {
        return inQty2;
    }

    public void setInQty2(Integer inQty2) {
        this.inQty2 = inQty2;
    }

    public Integer getOutQty1() {
        return outQty1;
    }

    public void setOutQty1(Integer outQty1) {
        this.outQty1 = outQty1;
    }

    public Integer getOutQty2() {
        return outQty2;
    }

    public void setOutQty2(Integer outQty2) {
        this.outQty2 = outQty2;
    }

    public Integer getMoveInQty1() {
        return moveInQty1;
    }

    public void setMoveInQty1(Integer moveInQty1) {
        this.moveInQty1 = moveInQty1;
    }

    public Integer getMoveInQty2() {
        return moveInQty2;
    }

    public void setMoveInQty2(Integer moveInQty2) {
        this.moveInQty2 = moveInQty2;
    }

    public Integer getMoveOutQty1() {
        return moveOutQty1;
    }

    public void setMoveOutQty1(Integer moveOutQty1) {
        this.moveOutQty1 = moveOutQty1;
    }

    public Integer getMoveOutQty2() {
        return moveOutQty2;
    }

    public void setMoveOutQty2(Integer moveOutQty2) {
        this.moveOutQty2 = moveOutQty2;
    }

    public Integer getExternalReworkQty1() {
        return externalReworkQty1;
    }

    public void setExternalReworkQty1(Integer externalReworkQty1) {
        this.externalReworkQty1 = externalReworkQty1;
    }

    public Integer getExternalReworkQty2() {
        return externalReworkQty2;
    }

    public void setExternalReworkQty2(Integer externalReworkQty2) {
        this.externalReworkQty2 = externalReworkQty2;
    }

    public String getLoadPosition() {
        return loadPosition;
    }

    public void setLoadPosition(String loadPosition) {
        this.loadPosition = loadPosition;
    }

    public Long getStepTransRrn() {
        return stepTransRrn;
    }

    public void setStepTransRrn(Long stepTransRrn) {
        this.stepTransRrn = stepTransRrn;
    }

    public String getChamberType() {
        return chamberType;
    }

    public void setChamberType(String chamberType) {
        this.chamberType = chamberType;
    }

    public String getOperationSeq() {
        return operationSeq;
    }

    public void setOperationSeq(String operationSeq) {
        this.operationSeq = operationSeq;
    }

    public String getPollutionLevel() {
        return pollutionLevel;
    }

    public void setPollutionLevel(String pollutionLevel) {
        this.pollutionLevel = pollutionLevel;
    }

    public String getRouteSeq() {
        return routeSeq;
    }

    public void setRouteSeq(String routeSeq) {
        this.routeSeq = routeSeq;
    }

    public String getProductLayer() {
        return productLayer;
    }

    public void setProductLayer(String productLayer) {
        this.productLayer = productLayer;
    }

    public String getHotFlag() {
        return hotFlag;
    }

    public void setHotFlag(String hotFlag) {
        this.hotFlag = hotFlag;
    }

    public Long getPriority() {
        return priority;
    }

    public void setPriority(Long priority) {
        this.priority = priority;
    }

    public String getCreateCategory() {
        return createCategory;
    }

    public void setCreateCategory(String createCategory) {
        this.createCategory = createCategory;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getParameterValue() {
        return parameterValue;
    }

    public void setParameterValue(String parameterValue) {
        this.parameterValue = parameterValue;
    }

    public String getOperationDesc() {
        return operationDesc;
    }

    public void setOperationDesc(String operationDesc) {
        this.operationDesc = operationDesc;
    }

    public String getStepType() {
        return stepType;
    }

    public void setStepType(String stepType) {
        this.stepType = stepType;
    }

    public String getWorkArea() {
        return workArea;
    }

    public void setWorkArea(String workArea) {
        this.workArea = workArea;
    }

    public String getFlowSeq() {
        return flowSeq;
    }

    public void setFlowSeq(String flowSeq) {
        this.flowSeq = flowSeq;
    }

    public String getEqptGroup() {
        return eqptGroup;
    }

    public void setEqptGroup(String eqptGroup) {
        this.eqptGroup = eqptGroup;
    }

    public Long getEqptGroupRrn() {
        return eqptGroupRrn;
    }

    public void setEqptGroupRrn(Long eqptGroupRrn) {
        this.eqptGroupRrn = eqptGroupRrn;
    }

    public String getProcessLocation() {
        return processLocation;
    }

    public void setProcessLocation(String processLocation) {
        this.processLocation = processLocation;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getShippingCode() {
        return shippingCode;
    }

    public void setShippingCode(String shippingCode) {
        this.shippingCode = shippingCode;
    }

    public String getOuterOrderNo() {
        return outerOrderNo;
    }

    public void setOuterOrderNo(String outerOrderNo) {
        this.outerOrderNo = outerOrderNo;
    }

    public String getOutOrderType() {
        return outOrderType;
    }

    public void setOutOrderType(String outOrderType) {
        this.outOrderType = outOrderType;
    }

    public String getRecycleStepInfo() {
        return recycleStepInfo;
    }

    public void setRecycleStepInfo(String recycleStepInfo) {
        this.recycleStepInfo = recycleStepInfo;
    }

    public String getRecycleStepIdInfo() {
        return recycleStepIdInfo;
    }

    public void setRecycleStepIdInfo(String recycleStepIdInfo) {
        this.recycleStepIdInfo = recycleStepIdInfo;
    }

    public Long getRecipeGroupRrn() {
        return recipeGroupRrn;
    }

    public void setRecipeGroupRrn(Long recipeGroupRrn) {
        this.recipeGroupRrn = recipeGroupRrn;
    }

    public Long getRecipeGroupVersion() {
        return recipeGroupVersion;
    }

    public void setRecipeGroupVersion(Long recipeGroupVersion) {
        this.recipeGroupVersion = recipeGroupVersion;
    }

    public Long getRecipeLogicalRrn() {
        return recipeLogicalRrn;
    }

    public void setRecipeLogicalRrn(Long recipeLogicalRrn) {
        this.recipeLogicalRrn = recipeLogicalRrn;
    }

    public Long getRecipeLogicalVersion() {
        return recipeLogicalVersion;
    }

    public void setRecipeLogicalVersion(Long recipeLogicalVersion) {
        this.recipeLogicalVersion = recipeLogicalVersion;
    }

    public String getRecipePhysicalId() {
        return recipePhysicalId;
    }

    public void setRecipePhysicalId(String recipePhysicalId) {
        this.recipePhysicalId = recipePhysicalId;
    }

    public String getPollutionLevelAfter() {
        return pollutionLevelAfter;
    }

    public void setPollutionLevelAfter(String pollutionLevelAfter) {
        this.pollutionLevelAfter = pollutionLevelAfter;
    }

    public String getFlipType() {
        return flipType;
    }

    public void setFlipType(String flipType) {
        this.flipType = flipType;
    }

}