添加项目文件。
This commit is contained in:
57
U8AppMain/Bom/Bom.cs
Normal file
57
U8AppMain/Bom/Bom.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
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>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user