package com.iformall.enums;

/**
 * Created by luozukai
 * 流程key
 */
public enum EnumFlowKey {
    CONTRACT(1, "contract_flow"), //合同审批
    BILL(2, "end_bill_flow"),//账单审批
    END_CONTRACT(3, "end_contract_flow"),//终止合同审批

    NEW_RENT_CONTRACT(4, "商铺租金合同签约"),
    NEW_SHOP_CONTRACT(5, "多经点位租金合同签约"),
    NEW_RENT_END_CONTRACT(6, "商铺租金合同终止"),
    NEW_SHOP_END_CONTRACT(7, "多经点位租金合同终止"),

    NEW_BILL_CHANGE(8, "账单应收金额变更"),

    NEW_COUPON_UPLINE(9, "有价券审批"),
    NEW_CARD_UPLINE(10, "卡审批"),
    NEW_GROUP_UPLINE(11, "拼团"),
    NEW_PRESS_UPLINE(12, "砍价审批"),

    NEW_PRO_CONTRACT(13, "商铺物业合同签约"),
    NEW_PRO_END(14, "商铺物业合同终止"),
    NEW_PRO_POINT_CONTRACT(15, "多经点位物业合同签约"),
    NEW_PRO_POINT_CONTRACT_END(16, "多经点位物业合同终止"),

    NNEW_RENT_CONTRACT(17, "商铺租赁合同签约"),
    NEW_RENT_END(18, "商铺租赁合同终止"),
    NEW_RENT_POINT_CONTRACT(19, "多经点位商铺租赁合同签约"),
    NEW_RENT_POINT_CONTRACT_END(20, "多经点位商铺租赁合同终止"),

    SETTLE(21,"结算单审批"),
    ;

    public static EnumFlowKey getEnum(Integer code) {
        for (EnumFlowKey value : values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    private Integer code;
    private String message;

    EnumFlowKey(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
