package com.bonus.canteen.core.supply.constant;

public enum DrpQuoteStatusEnum {
   QUOTED(1, "已报价"),
   NOT_QUOTED(2, "未报价"),
   WON_THE_BID(3, "已中标"),
   LOSE_THE_BID(4, "未中标"),
   SAVE_NOT_COMMIT(5, "保存未提交");

   private final Integer key;
   private final String value;

   private DrpQuoteStatusEnum(Integer key, String value) {
      this.key = key;
      this.value = value;
   }

   public static Integer getKey(String value) {
      DrpQuoteStatusEnum[] enums = values();
      DrpQuoteStatusEnum[] var2 = enums;
      int var3 = enums.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         DrpQuoteStatusEnum temp = var2[var4];
         if (temp.value().equals(value)) {
            return temp.key();
         }
      }

      return null;
   }

   public static String getValue(Integer key) {
      DrpQuoteStatusEnum[] enums = values();
      DrpQuoteStatusEnum[] var2 = enums;
      int var3 = enums.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         DrpQuoteStatusEnum temp = var2[var4];
         if (temp.key().equals(key)) {
            return temp.value();
         }
      }

      return null;
   }

   public Integer key() {
      return this.key;
   }

   public String value() {
      return this.value;
   }

   // $FF: synthetic method
   private static DrpQuoteStatusEnum[] $values() {
      return new DrpQuoteStatusEnum[]{QUOTED, NOT_QUOTED, WON_THE_BID, LOSE_THE_BID, SAVE_NOT_COMMIT};
   }
}
