public CheckItemFieldViewModel(UnitEntryValue entryValue) { Id = entryValue.Id; Description = entryValue.ValueName; FieldType = entryValue.Unit; Value = entryValue.Value; }
public UnitEntryValueDBInfo(int checkListId, UnitEntryValue unitEntryValue) { this.checkListID = checkListId; this.Id = unitEntryValue.Id; this.Value = unitEntryValue.Value; this.ValueName = unitEntryValue.ValueName; this.Unit = unitEntryValue.Unit; }
public UnitEntryValue GetUnitEntryValue() { UnitEntryValue unitEntryValue = new UnitEntryValue(); unitEntryValue.Id = this.Id; unitEntryValue.Value = this.Value; unitEntryValue.ValueName = this.ValueName; unitEntryValue.Unit = this.Unit; return(unitEntryValue); }