58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using System.Xml.Serialization;
|
|||
|
|
|
|||
|
|
namespace U8AppMain.Bom
|
|||
|
|
{
|
|||
|
|
public class BomEnity
|
|||
|
|
{
|
|||
|
|
public VersionEnity Version { get; set; } = new VersionEnity();
|
|||
|
|
|
|||
|
|
public ParentEnity Parent { get; set; } = new ParentEnity();
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
[XmlElement(Type = typeof(ComponentEnity))]
|
|||
|
|
public List<ComponentEnity> Component
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
return this._componentBodies.ConvertAll(m => { return m.Component; });
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[XmlElement(Type = typeof(ComponentOptEnity))]
|
|||
|
|
public List<ComponentOptEnity> ComponentOpt
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
return this.ComponentBodies.ConvertAll(m => { return m.ComponentOpt; });
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[XmlElement(Type = typeof(ComponentRmkEnity))]
|
|||
|
|
public List<ComponentRmkEnity> ComponentRmks
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
return this.ComponentBodies.ConvertAll(m => { return m.componentRmk; });
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
[XmlIgnore]
|
|||
|
|
public List<ComponentBody> ComponentBodies { get => _componentBodies; set => _componentBodies = value; }
|
|||
|
|
|
|||
|
|
private List<ComponentBody> _componentBodies = new List<ComponentBody>();
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|