Undo WIP
This commit is contained in:
		
							parent
							
								
									dab6ec3642
								
							
						
					
					
						commit
						b57ad3d393
					
				@ -45,7 +45,6 @@ public class MaterialDTO {
 | 
			
		||||
		density = theDensity;
 | 
			
		||||
		type = theType;
 | 
			
		||||
		uom = theUom;
 | 
			
		||||
		type.getORMaterialType().getUnitGroup().setDefaultUnit(getUom());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public String getName() {
 | 
			
		||||
@ -70,7 +69,6 @@ public class MaterialDTO {
 | 
			
		||||
 | 
			
		||||
	public void setType(final MaterialTypeDTO theType) {
 | 
			
		||||
		type = theType;
 | 
			
		||||
		type.getORMaterialType().getUnitGroup().setDefaultUnit(getUom());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public String getUom() {
 | 
			
		||||
@ -79,7 +77,6 @@ public class MaterialDTO {
 | 
			
		||||
 | 
			
		||||
	public void setUom(final String theUom) {
 | 
			
		||||
		uom = theUom;
 | 
			
		||||
		type.getORMaterialType().getUnitGroup().setDefaultUnit(theUom);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	Material asMaterial() {
 | 
			
		||||
@ -104,7 +101,6 @@ public class MaterialDTO {
 | 
			
		||||
				// in SI units, so we need to convert it to SI units
 | 
			
		||||
				Unit uomUnit = type.getORMaterialType().getUnitGroup().getUnit(getUom());
 | 
			
		||||
				density = uomUnit.fromUnit(density);
 | 
			
		||||
				//type.getORMaterialType().getUnitGroup().setDefaultUnit(uomUnit);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user