2using System.Xml.Serialization;
19[XmlType(TypeName =
"productionCharacteristic")]
81 [XmlAttribute(
"itemId")]
90 throw new ArgumentOutOfRangeException(
93 "The item identifier cannot be negative.");
97 SetProperty(ref _itemId, value);
107 [XmlElement(
"workCenter")]
114 ArgumentNullException.ThrowIfNull(value);
117 SetProperty(ref _workCenter, value);
145 return other is not
null
169 return WorkCenter.PlantId == plantId
170 && WorkCenter.WorkCenterId == workCenterId;
Base class for model objects that notify listeners when one of their properties changes.
Represents a serializable reference to a work center.
WorkCenterReference WorkCenter
Gets or sets the referenced work center.
int WorkCenterId
Gets the identifier of the referenced work center.
ProductionCharacteristic()
Initializes an empty production characteristic.
ProductionCharacteristic(int itemId, WorkCenterReference workCenter)
Initializes a production characteristic.
ProductionCharacteristic(int itemId, int plantId, int workCenterId)
Initializes a production characteristic from identifiers.
int PlantId
Gets the identifier of the plant owning the work center.
bool RefersToSameAssociation(ProductionCharacteristic? other)
Determines whether this object represents the same item/work-center association as another object.
bool ConcernsItem(int itemId)
Determines whether this production characteristic concerns a specified item.
int ItemId
Gets or sets the identifier of the item manufactured on the referenced work center.
bool ConcernsWorkCenter(int plantId, int workCenterId)
Determines whether this production characteristic concerns a specified work center.