/// <summary> /// Compares two Sections /// </summary> /// <param name="otherDto">The other Section, which this is compared to.</param> /// <returns>The result of the comparison</returns> public override bool Equals(LookupDtoBase otherDto) { var other = (SectionDto)otherDto; return(Id == other.Id && Name == other.Name && Locked == other.Locked && DepartmentId == other.DepartmentId && FloorId == other.FloorId); }
/// <summary> /// Updates the values of the itemTypes properties by another LookupDtoBase /// The other Dto is also a itemTypeDto /// </summary> /// <param name="sourceDto">The other itemType</param> public override void UpdateByDto(LookupDtoBase sourceDto) { var source = (ItemTypeDto)sourceDto; Id = source.Id; Name = source.Name; ItemNatureId = source.ItemNatureId; Locked = source.Locked; }
/// <summary> /// Updates the values of the Departments properties by another LookupDtoBase /// The other Dto is also a DepartmentDto /// </summary> /// <param name="sourceDto">The other Department</param> public override void UpdateByDto(LookupDtoBase sourceDto) { var source = (DepartmentDto)sourceDto; Id = source.Id; Name = source.Name; EmployeeId = source.EmployeeId; Locked = source.Locked; }
/// <summary> /// Updates the values of the Buildings properties by another LookupDtoBase /// The other Dto is also a BuildingDto /// </summary> /// <param name="sourceDto">The other building</param> public override void UpdateByDto(LookupDtoBase sourceDto) { var source = (BuildingDto)sourceDto; Id = source.Id; Name = source.Name; LocationId = source.LocationId; Locked = source.Locked; }
/// <summary> /// Updates the values of the Sections properties by another LookupDtoBase /// The other Dto is also a SectionDto /// </summary> /// <param name="sourceDto">The other Section</param> public override void UpdateByDto(LookupDtoBase sourceDto) { var source = (SectionDto)sourceDto; Id = source.Id; Name = source.Name; DepartmentId = source.DepartmentId; FloorId = source.FloorId; Locked = source.Locked; }
/// <summary> /// Updates the values of the floors properties by another LookupDtoBase /// The other Dto is also a floor /// </summary> /// <param name="sourceDto">The other floor</param> public override void UpdateByDto(LookupDtoBase sourceDto) { var source = (FloorDto)sourceDto; Id = source.Id; Name = source.Name; BuildingId = source.BuildingId; Building?.UpdateByDto(source.Building); Locked = source.Locked; }
/// <summary> /// Compares two itemTypes /// </summary> /// <param name="otherDto">The other itemType, which this is compared to.</param> /// <returns>The result of the comparison</returns> public override bool Equals(LookupDtoBase otherDto) { var other = (ItemTypeDto)otherDto; return(Id == other.Id && Name == other.Name && Locked == other.Locked && ItemNatureId == other.ItemNatureId); }
/// <summary> /// Compares two Departments /// </summary> /// <param name="otherDto">The other Department, which this is compared to.</param> /// <returns>The result of the comparison</returns> public override bool Equals(LookupDtoBase otherDto) { var other = (DepartmentDto)otherDto; return(Id == other.Id && Name == other.Name && Locked == other.Locked && EmployeeId == other.EmployeeId); }
/// <summary> /// Compares two buildings /// </summary> /// <param name="otherDto">The other building, which this is compared to.</param> /// <returns>The result of the comparison</returns> public override bool Equals(LookupDtoBase otherDto) { var other = (BuildingDto)otherDto; return(Id == other.Id && Name == other.Name && Locked == other.Locked && LocationId == other.LocationId); }
/// <summary> /// Updates the values of the ItemStates properties by another LookupDtoBase /// The other Dto is also a ItemStateDto /// </summary> /// <param name="sourceDto">The other ItemState</param> public override void UpdateByDto(LookupDtoBase sourceDto) { Name = sourceDto.Name; Id = sourceDto.Id; Locked = sourceDto.Locked; }