package com.sunda.spmsoversea.enums;

/**
 * 海外领用申请单状态枚举类
 * @author 0113389
 *
 */
public enum OverseaRequisitionPrintEnum {
	/**待处理**/
	PENDING_PROCESSING("1", "待处理"),
	/**待审批**/
	PENDING_APPROVAL("2", "待审批"),
	/**审批通过**/
	APPROVED("3", "审批通过"),
	/**退回**/
	GO_BACK("4", "退回"),
	/**完成**/
	COMPLETE("5", "完成"),
	/**关闭/作废**/
	CLOSE_CANCEL("0", "关闭/作废");
	
	private String value;
	
	private String desc;

	private OverseaRequisitionPrintEnum(String value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public String getValue() {
		return value;
	}

	public String getDesc() {
		return desc;
	}
	
	public static String getDescByValue(String code) {
		OverseaRequisitionPrintEnum[] values = OverseaRequisitionPrintEnum.values();
		for (int i = 0; i < values.length; i++) {
			if (values[i].getValue().equals(code)) {
				return values[i].getDesc();
			}
		}
		return "";
	}
	
	
}
