PilotContextValue.java

package com.mycim.valueobject.prp;

import com.mycim.framework.utils.lang.StringUtils;
import com.mycim.framework.utils.lang.math.NumberUtils;

/**
 * @author andy
 */
public class PilotContextValue extends AbstractContextValue {

    public static final String YES = "1";

    public static final String NO = "0";

    public PilotContextValue() {
        super();
    }

    /**
     * @param contextRrn
     */
    public PilotContextValue(long contextRrn) {
        super(contextRrn);
    }

    /**
     * @return the endRouteRrn
     */
    public Long getEndRouteRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue1()));
    }

    /**
     * @return the endOperationRrn
     */
    public Long getEndOperationRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue2()));
    }

    /**
     * @return the qty
     */
    public int getQty() {
        return NumberUtils.toInt(this.getResultValue3(), 0);
    }

    /**
     * @return the minParentQty
     */
    public int getMinParentQty() {
        return NumberUtils.toInt(this.getResultValue4(), 0);
    }

    /**
     * @return the skipUserGroupRrn
     */
    public Long getSkipUserGroupRrn() {
        return NumberUtils.createLong(this.getResultValue5());
    }

    /**
     * @return the holdDepart
     */
    public String getHoldDepart() {
        return this.getResultValue6();
    }

    /**
     * @return the holdCode
     */
    public String getHoldCode() {
        return this.getResultValue7();
    }

    /**
     * @return the holdCode
     */
    public Long getPilotTimes() {
        return NumberUtils.createLong(this.getResultValue8());
    }

    public String getPilotRules() {
        return this.getResultValue9();
    }

    public String getPilotLotType() {
        return this.getResultValue10();
    }

    public String getMeasureOperations() {
        return this.getResultValue11();
    }

    public String getAutoReleaseSpcHold() {
        return this.getResultValue12();
    }

    public String getAutoReleasePilotHold() {
        return this.getResultValue13();
    }

    public String getAutoMergePilot() {
        return this.getResultValue14();
    }

}