SpcResultEquipment.java

package com.mycim.valueobject.ems;

import com.mycim.framework.utils.lang.collections.MapUtils;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

public class SpcResultEquipment implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private Long transRrn;

    private Long resultSequence;

    private Long equipmentRrn;

    private Long lotRrn;

    private Long productRrn;

    private Long processRrn;

    private Long routeRrn;

    private Long operationRrn;

    private Long stepSequence;

    private String performedBy;

    private Date logDate;

    private String collectionLevel;

    private String reasonCode;

    private String isHold;

    private String errorCode;

    private String errorMessage;

    private String holdType;

    private String edcType;

    private String alarmId;

    public static String getReasonInfo(List list) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0, j = list.size(); i < j; i++) {
            StringBuffer singleHold = new StringBuffer();
            HashMap equihold = (HashMap) list.get(i);
            singleHold.append("\n原因代码:");
            singleHold.append(MapUtils.getString(equihold, "REASON"));

            sb.append(singleHold);
        }

        return sb.toString();
    }

    public Long getTransRrn() {
        return transRrn;
    }

    public void setTransRrn(Long transRrn) {
        this.transRrn = transRrn;
    }

    public Long getResultSequence() {
        return resultSequence;
    }

    public void setResultSequence(Long resultSequence) {
        this.resultSequence = resultSequence;
    }

    public Long getEquipmentRrn() {
        return equipmentRrn;
    }

    public void setEquipmentRrn(Long equipmentRrn) {
        this.equipmentRrn = equipmentRrn;
    }

    public Long getLotRrn() {
        return lotRrn;
    }

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

    public Long getProductRrn() {
        return productRrn;
    }

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

    public Long getProcessRrn() {
        return processRrn;
    }

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

    public Long getRouteRrn() {
        return routeRrn;
    }

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

    public Long getOperationRrn() {
        return operationRrn;
    }

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

    public Long getStepSequence() {
        return stepSequence;
    }

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

    public String getPerformedBy() {
        return performedBy;
    }

    public void setPerformedBy(String performedBy) {
        this.performedBy = performedBy;
    }

    public Date getLogDate() {
        return logDate;
    }

    public void setLogDate(Date logDate) {
        this.logDate = logDate;
    }

    public String getCollectionLevel() {
        return collectionLevel;
    }

    public void setCollectionLevel(String collectionLevel) {
        this.collectionLevel = collectionLevel;
    }

    public String getReasonCode() {
        return reasonCode;
    }

    public void setReasonCode(String reasonCode) {
        this.reasonCode = reasonCode;
    }

    public String getIsHold() {
        return isHold;
    }

    public void setIsHold(String isHold) {
        this.isHold = isHold;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getHoldType() {
        return holdType;
    }

    public void setHoldType(String holdType) {
        this.holdType = holdType;
    }

    public String getEdcType() {
        return edcType;
    }

    public void setEdcType(String edcType) {
        this.edcType = edcType;
    }

    public String getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

}