| | |
| | | this.chileIndexList = chileIndexList; |
| | | this.name = name; |
| | | } |
| | | |
| | | public static String getNameByKey(Integer key ) { |
| | | if(key == null){ |
| | | return null; |
| | | } |
| | | for (TopStatusLevel c : TopStatusLevel.values()) { |
| | | if (c.getKey() == key) { |
| | | return c.getName(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | public int getKey() { |
| | | return key; |
| | | } |
| | |
| | | this.orderStatus = orderStatus; |
| | | this.parentIndex = parentIndex; |
| | | } |
| | | public static Integer getParentIndexByStatus(int orderStatus) { |
| | | public static Integer getParentIndexByStatus(Integer orderStatus) { |
| | | if(orderStatus == null){ |
| | | return null; |
| | | } |
| | | for (ChildStatusLevel c : ChildStatusLevel.values()) { |
| | | if (c.getOrderStatus() == orderStatus) { |
| | | return c.parentIndex; |