添加项目文件。

This commit is contained in:
admin
2020-12-18 11:10:50 +08:00
parent 10dec430de
commit 42e945036f
27 changed files with 1222 additions and 0 deletions

57
U8AppMain/Bom/Bom.cs Normal file
View 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>();
}
}

View 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();
}
}

View 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>
}
}

View 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; }
}
}

View 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
{
}
}

View 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
View 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>
}
}

View 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();
}
}