public LaborDetail Get(TWMLBRDTL entity) { if (entity != null) { LaborDetail obj = MapEntityToObject(entity); return(obj); } return(null); }
public LaborDetail MapEntityToObject(TWMLBRDTL entity) { LaborDetail obj = new LaborDetail(); obj.LaborCode = entity.CD_LBR; obj.IndOnOff = entity.IND_ON_OFF; obj.IndAction = entity.IND_ACTION; obj.CrewClass = entity.CD_CREW_CLASS; obj.FlagActive = entity.FG_ACTIVE; obj.LaborHours = (decimal)entity.HR_LBR; obj.AdditionalLaborHours = (decimal)entity.HR_LBR_ADDL; return(obj); }