Incident.TopLevelPart: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 25: Line 25:
* The TopLevelPart element is optional. If present, it must contain a valid part.
* The TopLevelPart element is optional. If present, it must contain a valid part.


* The top level part will not be imported, but the time metric data can be modified and will be imported.
* The Top Level Part can also be imported through the RepairReplace section by setting the PartOrder equal to 0. The top level part will not be imported if both the TopLevelPart and the RepairReplace(PartOrder = 0) are present and their part values do not match.


* The following conditions must be met for the TimeMetric elements to be inserted:
* The SerialHID and Serial number elements are required for Serialized Incidents. They they must match an exisiting SerialHID and/or SerialNumber, and must be at the top level of a Serial System.
1. The TopLevelPart element must contain a valid part.
2. If present, the SerialHID element value must match an existing SerialHID.
3. If present, the HID element value must match an existing HID.


* The TimeMetric1 (Double) element is optional.
* The TimeMetric1 (Double) element is optional.
Line 37: Line 34:


* The TimeMetic2 (Double) element is optional.
* The TimeMetic2 (Double) element is optional.
Update: TimeMetric1 will be updated if it differs from the original TimeMetric1 and if the original and updated part’s SerialHID values match. If the part does not match the original part, the part and TimeMetric1 will be updated

Revision as of 23:52, 18 September 2014

XML Element

<TopLevelPart>

<PartID />
<PartName />
<PartNumber />
<PartVersion />
<RetiredDate>
<Year />
<Month />
<Day />
<Hour />
<Minute />
<Second />
<FormattedDate />
</RetiredDate>
<SerialHID />
<SerialNumber />
<TimeMetric1 />
<TimeMetric2 />
<TimeMetric3 />

</TopLevelPart>

Description

  • The TopLevelPart element is optional. If present, it must contain a valid part.
  • The Top Level Part can also be imported through the RepairReplace section by setting the PartOrder equal to 0. The top level part will not be imported if both the TopLevelPart and the RepairReplace(PartOrder = 0) are present and their part values do not match.
  • The SerialHID and Serial number elements are required for Serialized Incidents. They they must match an exisiting SerialHID and/or SerialNumber, and must be at the top level of a Serial System.
  • The TimeMetric1 (Double) element is optional.
  • The TimeMetric2 (Double) element is optional.
  • The TimeMetic2 (Double) element is optional.

Update: TimeMetric1 will be updated if it differs from the original TimeMetric1 and if the original and updated part’s SerialHID values match. If the part does not match the original part, the part and TimeMetric1 will be updated