|  |  | @ -4888,4 +4888,51 @@ public class MesPcnEnumUtil { | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * 产品特性 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @JsonFormat(shape = JsonFormat.Shape.OBJECT) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     public enum PART_TRAIT { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         NORMAL(10, "正常件"), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FICTITIOUS_ASSEMBLY(20, "虚拟散件总成"), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FICTITIOUS_HALF_ASSEMBLY(30, "虚拟散件半总成"), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FICTIVE(40, "虚拟件"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         private int value; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         private String description; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         PART_TRAIT(int value, String description) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.value = value; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.description = description; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         public int getValue() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return value; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         public String getDescription() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return description; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         public static String valueOfDescription(int val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             String tmp = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             for (int i = 0; i < values().length; i++) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (values()[i].value == val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     tmp = values()[i].description; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return tmp; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         public static Integer descriptionOfValue(String description) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             Integer tmp = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             for (int i = 0; i < values().length; i++) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (values()[i].description.equals(description)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     tmp = values()[i].value; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return tmp; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |