修正项目
This commit is contained in:
57
NX.ERP.U8.App/Bom/Bom.cs
Normal file
57
NX.ERP.U8.App/Bom/Bom.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
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> ComponentRmk
|
||||
{
|
||||
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
NX.ERP.U8.App/Bom/ComponentBody.cs
Normal file
21
NX.ERP.U8.App/Bom/ComponentBody.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
67
NX.ERP.U8.App/Bom/ComponentEnity.cs
Normal file
67
NX.ERP.U8.App/Bom/ComponentEnity.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
|
||||
//<OpComponentId>10</OpComponentId>
|
||||
// <BomId>4</BomId>
|
||||
// <SortSeq>10</SortSeq>
|
||||
// <OpSeq>0000</OpSeq>
|
||||
// <InvCode>107001</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>10</OptionsId>
|
||||
|
||||
public class ComponentEnity
|
||||
{
|
||||
public int OpComponentId { get; set; }
|
||||
public int BomId { get; set; }
|
||||
|
||||
|
||||
public string SortSeq { get; set; }
|
||||
public string OpSeq { get; set; } = "000";
|
||||
|
||||
public string InvCode { get; set; }
|
||||
|
||||
public DateTime EffBegDate { get; set; } = DateTime.Today;
|
||||
|
||||
|
||||
public DateTime EffEndDate { get; set; } = DateTime.Now.AddYears(50);
|
||||
|
||||
public int FVFlag { get; set; } = 1;
|
||||
|
||||
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>
|
||||
}
|
||||
}
|
||||
26
NX.ERP.U8.App/Bom/ComponentOptEnity.cs
Normal file
26
NX.ERP.U8.App/Bom/ComponentOptEnity.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ComponentOptEnity
|
||||
{
|
||||
public string WIPType { get; set; }
|
||||
|
||||
public int OptionsId { get; set; }
|
||||
public int Offset { get; set; }
|
||||
public bool AccuCostFlag { get; set; } = true;
|
||||
public string DrawDeptCode { get; set; } = "";
|
||||
public string Whcode { get; set; } = "";
|
||||
public bool OptionalFlag { get; set; } = false;
|
||||
public int MutexRule { get; set; } = 2;
|
||||
public decimal PlanFactor { get; set; } = 100;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
12
NX.ERP.U8.App/Bom/ComponentRmkEnity.cs
Normal file
12
NX.ERP.U8.App/Bom/ComponentRmkEnity.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ComponentRmkEnity
|
||||
{
|
||||
}
|
||||
}
|
||||
25
NX.ERP.U8.App/Bom/ParentEnity.cs
Normal file
25
NX.ERP.U8.App/Bom/ParentEnity.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
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>
|
||||
}
|
||||
}
|
||||
27
NX.ERP.U8.App/Bom/Version.cs
Normal file
27
NX.ERP.U8.App/Bom/Version.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class VersionEnity
|
||||
{
|
||||
public int BomId { get; set; } = 0;
|
||||
public string BomType { get; set; } = "1";
|
||||
public int Version { get; set; }
|
||||
public string VersionDesc { get; set; }
|
||||
public DateTime VersionEffDate { get; set; } = DateTime.Now;
|
||||
|
||||
public int Status { get; set; } = 3;
|
||||
|
||||
|
||||
public string Define12 { get; set; }
|
||||
//<BomType>1</BomType>
|
||||
// <Version>70</Version>
|
||||
// <VersionDesc>环球普通PC</VersionDesc>
|
||||
// <VersionEffDate>2000-01-07T00:00:00+08:00</VersionEffDate>
|
||||
// <Status>3</Status>
|
||||
}
|
||||
}
|
||||
46
NX.ERP.U8.App/Bom/ufinterface.cs
Normal file
46
NX.ERP.U8.App/Bom/ufinterface.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using System.Xml;
|
||||
namespace U8AppMain.Bom
|
||||
{
|
||||
public class ufinterface
|
||||
{
|
||||
|
||||
//sender="003" receiver="u8" roottag="Bom" docid="971742630" proc="add" codeexchanged="N" exportneedexch="N" paginate="0" display="物料清单" family="生产制造" timestamp="0x000000000027B6E6"
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string sender { get; set; } = "003";
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string receiver { get; set; } = "u8";
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string roottag { get; set; } = "Bom";
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string docid { get; set; } = "971742630";
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string proc { get; set; } = "add";
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string codeexchanged { get; set; } = "N";
|
||||
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string exportneedexch { get; set; } = "N";
|
||||
[System.Xml.Serialization.XmlAttribute]
|
||||
public string paginate { get; set; } = "0";
|
||||
|
||||
[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; } = "0x000000000027B6E6";
|
||||
|
||||
|
||||
|
||||
|
||||
public BomEnity Bom { get; set; } = new BomEnity();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user