添加项目文件。
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>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
21
U8AppMain/Bom/ComponentBody.cs
Normal file
21
U8AppMain/Bom/ComponentBody.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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 ComponentBody
|
||||
{
|
||||
public ComponentEnity Component { get; set; } = new ComponentEnity();
|
||||
|
||||
|
||||
public ComponentOptEnity ComponentOpt { get; set; } = new ComponentOptEnity();
|
||||
|
||||
|
||||
public ComponentRmkEnity componentRmk { get; set; } = new ComponentRmkEnity();
|
||||
}
|
||||
}
|
||||
53
U8AppMain/Bom/ComponentEnity.cs
Normal file
53
U8AppMain/Bom/ComponentEnity.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
|
||||
public class ComponentEnity
|
||||
{
|
||||
public int OpComponentId { get; set; }
|
||||
public int BomId { get; set; }
|
||||
|
||||
|
||||
public int SortSeq { get; set; }
|
||||
public string OpSeq { get; set; }
|
||||
|
||||
public string InvCode { get; set; }
|
||||
|
||||
public DateTime EffBegDate { get; set; }
|
||||
|
||||
|
||||
public DateTime EffEndDate { get; set; }
|
||||
|
||||
public int FVFlag { get; set; }
|
||||
|
||||
public decimal BaseQtyN { get; set; }
|
||||
|
||||
public decimal BaseQtyD { get; set; }
|
||||
|
||||
public decimal CompScrap { get; set; }
|
||||
|
||||
public bool ByproductFlag { get; set; }
|
||||
|
||||
|
||||
public int OptionsId { get; set; }
|
||||
|
||||
//<OpComponentId>11</OpComponentId>
|
||||
// <BomId>4</BomId>
|
||||
// <SortSeq>20</SortSeq>
|
||||
// <OpSeq>0000</OpSeq>
|
||||
// <InvCode>502006</InvCode>
|
||||
// <EffBegDate>2000-01-07T00:00:00+08:00</EffBegDate>
|
||||
// <EffEndDate>2099-12-31T00:00:00+08:00</EffEndDate>
|
||||
// <FVFlag>1</FVFlag>
|
||||
// <BaseQtyN>1.000000</BaseQtyN>
|
||||
// <BaseQtyD>1.000000</BaseQtyD>
|
||||
// <CompScrap>0.000</CompScrap>
|
||||
// <ByproductFlag>false</ByproductFlag>
|
||||
// <OptionsId>11</OptionsId>
|
||||
}
|
||||
}
|
||||
22
U8AppMain/Bom/ComponentOptEnity.cs
Normal file
22
U8AppMain/Bom/ComponentOptEnity.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ComponentOptEnity
|
||||
{
|
||||
|
||||
public int OptionsId { get; set; }
|
||||
public int Offset { get; set; }
|
||||
public bool AccuCostFlag { get; set; }
|
||||
public string DrawDeptCode { get; set; }
|
||||
public string Whcode { get; set; }
|
||||
public bool OptionalFlag { get; set; }
|
||||
public int MutexRule { get; set; }
|
||||
public decimal PlanFactor { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
12
U8AppMain/Bom/ComponentRmkEnity.cs
Normal file
12
U8AppMain/Bom/ComponentRmkEnity.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ComponentRmkEnity
|
||||
{
|
||||
}
|
||||
}
|
||||
25
U8AppMain/Bom/ParentEnity.cs
Normal file
25
U8AppMain/Bom/ParentEnity.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ParentEnity
|
||||
{
|
||||
|
||||
public int BomId { get; set; }
|
||||
public string InvCode { get; set; } = "";
|
||||
|
||||
public string InvName { get; set; } = "";
|
||||
|
||||
|
||||
public decimal ParentScrap { get; set; }
|
||||
|
||||
//<BomId>4</BomId>
|
||||
// <InvCode>1001002</InvCode>
|
||||
// <InvName>环球普通PC</InvName>
|
||||
// <ParentScrap>0.000</ParentScrap>
|
||||
}
|
||||
}
|
||||
25
U8AppMain/Bom/Version.cs
Normal file
25
U8AppMain/Bom/Version.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class VersionEnity
|
||||
{
|
||||
public int BomId { get; set; } = 0;
|
||||
public int BomType { get; set; }
|
||||
public int Version { get; set; }
|
||||
public String VersionDesc { get; set; }
|
||||
public DateTime VersionEffDate { get; set; } = DateTime.Now;
|
||||
|
||||
public int Status { get; set; }
|
||||
|
||||
//<BomType>1</BomType>
|
||||
// <Version>70</Version>
|
||||
// <VersionDesc>环球普通PC</VersionDesc>
|
||||
// <VersionEffDate>2000-01-07T00:00:00+08:00</VersionEffDate>
|
||||
// <Status>3</Status>
|
||||
}
|
||||
}
|
||||
45
U8AppMain/Bom/ufinterface.cs
Normal file
45
U8AppMain/Bom/ufinterface.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ufinterface
|
||||
{
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string Sender { get; set; }
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string receiver { get; set; }
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string roottag { get; set; }
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string docid { get; set; }
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string proc { get; set; }
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string codeexchanged { get; set; }
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string exportneedexch { get; set; }
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string paginate { get; set; }
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string display { get; set; }
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string family { get; set; }
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string timestamp { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
public BomEnity Bom { get; set; } = new BomEnity();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user