diff --git a/U8App.sln b/U8App.sln
new file mode 100644
index 0000000..c41b1fe
--- /dev/null
+++ b/U8App.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30804.86
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "U8AppMain", "U8AppMain\U8AppMain.csproj", "{8A6603B0-444A-49C7-80C9-195638129068}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {8A6603B0-444A-49C7-80C9-195638129068}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8A6603B0-444A-49C7-80C9-195638129068}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8A6603B0-444A-49C7-80C9-195638129068}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8A6603B0-444A-49C7-80C9-195638129068}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {8C57E044-32E1-444C-B548-E83838110953}
+ EndGlobalSection
+EndGlobal
diff --git a/U8AppMain/App.config b/U8AppMain/App.config
new file mode 100644
index 0000000..8e15646
--- /dev/null
+++ b/U8AppMain/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/U8AppMain/Bom/Bom.cs b/U8AppMain/Bom/Bom.cs
new file mode 100644
index 0000000..d59fe6c
--- /dev/null
+++ b/U8AppMain/Bom/Bom.cs
@@ -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 Component
+ {
+ get
+ {
+ return this._componentBodies.ConvertAll(m => { return m.Component; });
+ }
+ }
+
+ [XmlElement(Type = typeof(ComponentOptEnity))]
+ public List ComponentOpt
+ {
+ get
+ {
+
+ return this.ComponentBodies.ConvertAll(m => { return m.ComponentOpt; });
+ }
+
+ }
+
+ [XmlElement(Type = typeof(ComponentRmkEnity))]
+ public List ComponentRmks
+ {
+ get
+ {
+ return this.ComponentBodies.ConvertAll(m => { return m.componentRmk; });
+
+ }
+ }
+ [XmlIgnore]
+ public List ComponentBodies { get => _componentBodies; set => _componentBodies = value; }
+
+ private List _componentBodies = new List();
+
+
+
+
+
+ }
+}
diff --git a/U8AppMain/Bom/ComponentBody.cs b/U8AppMain/Bom/ComponentBody.cs
new file mode 100644
index 0000000..051914a
--- /dev/null
+++ b/U8AppMain/Bom/ComponentBody.cs
@@ -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();
+ }
+}
diff --git a/U8AppMain/Bom/ComponentEnity.cs b/U8AppMain/Bom/ComponentEnity.cs
new file mode 100644
index 0000000..7625f25
--- /dev/null
+++ b/U8AppMain/Bom/ComponentEnity.cs
@@ -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; }
+
+ //11
+ // 4
+ // 20
+ // 0000
+ // 502006
+ // 2000-01-07T00:00:00+08:00
+ // 2099-12-31T00:00:00+08:00
+ // 1
+ // 1.000000
+ // 1.000000
+ // 0.000
+ // false
+ // 11
+ }
+}
diff --git a/U8AppMain/Bom/ComponentOptEnity.cs b/U8AppMain/Bom/ComponentOptEnity.cs
new file mode 100644
index 0000000..789f2df
--- /dev/null
+++ b/U8AppMain/Bom/ComponentOptEnity.cs
@@ -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; }
+
+ }
+}
diff --git a/U8AppMain/Bom/ComponentRmkEnity.cs b/U8AppMain/Bom/ComponentRmkEnity.cs
new file mode 100644
index 0000000..eb521b0
--- /dev/null
+++ b/U8AppMain/Bom/ComponentRmkEnity.cs
@@ -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
+ {
+ }
+}
diff --git a/U8AppMain/Bom/ParentEnity.cs b/U8AppMain/Bom/ParentEnity.cs
new file mode 100644
index 0000000..c475f9a
--- /dev/null
+++ b/U8AppMain/Bom/ParentEnity.cs
@@ -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; }
+
+ //4
+ // 1001002
+ // 环球普通PC
+ // 0.000
+ }
+}
diff --git a/U8AppMain/Bom/Version.cs b/U8AppMain/Bom/Version.cs
new file mode 100644
index 0000000..0c12190
--- /dev/null
+++ b/U8AppMain/Bom/Version.cs
@@ -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; }
+
+ //1
+ // 70
+ // 环球普通PC
+ // 2000-01-07T00:00:00+08:00
+ // 3
+ }
+}
diff --git a/U8AppMain/Bom/ufinterface.cs b/U8AppMain/Bom/ufinterface.cs
new file mode 100644
index 0000000..c79ceb0
--- /dev/null
+++ b/U8AppMain/Bom/ufinterface.cs
@@ -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();
+ }
+}
diff --git a/U8AppMain/FrmMain.Designer.cs b/U8AppMain/FrmMain.Designer.cs
new file mode 100644
index 0000000..a00530d
--- /dev/null
+++ b/U8AppMain/FrmMain.Designer.cs
@@ -0,0 +1,86 @@
+
+namespace U8AppMain
+{
+ partial class FrmMain
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows 窗体设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.BtnBomImport = new System.Windows.Forms.Button();
+ this.panel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.BtnBomImport);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(800, 42);
+ this.panel1.TabIndex = 0;
+ //
+ // panel2
+ //
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel2.Location = new System.Drawing.Point(0, 42);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(800, 408);
+ this.panel2.TabIndex = 1;
+ //
+ // BtnBomImport
+ //
+ this.BtnBomImport.Location = new System.Drawing.Point(12, 12);
+ this.BtnBomImport.Name = "BtnBomImport";
+ this.BtnBomImport.Size = new System.Drawing.Size(75, 23);
+ this.BtnBomImport.TabIndex = 0;
+ this.BtnBomImport.Text = "Bom导入";
+ this.BtnBomImport.UseVisualStyleBackColor = true;
+ this.BtnBomImport.Click += new System.EventHandler(this.BtnBomImport_Click);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.panel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Button BtnBomImport;
+ private System.Windows.Forms.Panel panel2;
+ }
+}
+
diff --git a/U8AppMain/FrmMain.cs b/U8AppMain/FrmMain.cs
new file mode 100644
index 0000000..165573c
--- /dev/null
+++ b/U8AppMain/FrmMain.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.Xml.Serialization;
+namespace U8AppMain
+{
+ public partial class FrmMain : Form
+ {
+ public FrmMain()
+ {
+ InitializeComponent();
+ }
+
+ private void BtnBomImport_Click(object sender, EventArgs e)
+ {
+ var bom = new Bom.ufinterface();
+ bom.Bom.ComponentBodies.Add(new Bom.ComponentBody());
+ bom.Bom.ComponentBodies.Add(new Bom.ComponentBody());
+
+ MessageBox.Show(XmlHelper.XmlSerialize(bom, Encoding.UTF8));
+ }
+ }
+}
diff --git a/U8AppMain/FrmMain.resx b/U8AppMain/FrmMain.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/U8AppMain/FrmMain.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/U8AppMain/Program.cs b/U8AppMain/Program.cs
new file mode 100644
index 0000000..f670dbd
--- /dev/null
+++ b/U8AppMain/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace U8AppMain
+{
+ static class Program
+ {
+ ///
+ /// 应用程序的主入口点。
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new FrmMain());
+ }
+ }
+}
diff --git a/U8AppMain/Properties/AssemblyInfo.cs b/U8AppMain/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..2165d17
--- /dev/null
+++ b/U8AppMain/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("U8AppMain")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("U8AppMain")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("8a6603b0-444a-49c7-80c9-195638129068")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/U8AppMain/Properties/Resources.Designer.cs b/U8AppMain/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..674f0e6
--- /dev/null
+++ b/U8AppMain/Properties/Resources.Designer.cs
@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本: 4.0.30319.42000
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+//
+//------------------------------------------------------------------------------
+
+
+namespace U8AppMain.Properties
+{
+ ///
+ /// 强类型资源类,用于查找本地化字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// 返回此类使用的缓存 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("U8AppMain.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 重写当前线程的 CurrentUICulture 属性,对
+ /// 使用此强类型资源类的所有资源查找执行重写。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/U8AppMain/Properties/Resources.resx b/U8AppMain/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/U8AppMain/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/U8AppMain/Properties/Settings.Designer.cs b/U8AppMain/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..bd7bf7a
--- /dev/null
+++ b/U8AppMain/Properties/Settings.Designer.cs
@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+
+namespace U8AppMain.Properties
+{
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/U8AppMain/Properties/Settings.settings b/U8AppMain/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/U8AppMain/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/U8AppMain/Purchase/BodyEnity.cs b/U8AppMain/Purchase/BodyEnity.cs
new file mode 100644
index 0000000..aa9a69b
--- /dev/null
+++ b/U8AppMain/Purchase/BodyEnity.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace U8AppMain.Purchase
+{
+ public class BodyEnity
+ {
+ [System.Xml.Serialization.XmlElement(Type =typeof(entry),ElementName = "entry")]
+ public List entries { get; set; } = new List();
+ }
+}
diff --git a/U8AppMain/Purchase/EntryEnity.cs b/U8AppMain/Purchase/EntryEnity.cs
new file mode 100644
index 0000000..471a623
--- /dev/null
+++ b/U8AppMain/Purchase/EntryEnity.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace U8AppMain.Purchase
+{
+ public class entry
+ {
+
+ public string vendorcode { get; set; }
+ public string inventorycode { get; set; }
+
+ public int quantity { get; set; }
+
+ public decimal price { get; set; }
+
+ public decimal taxrate { get; set; }
+
+ public decimal taxprice { get; set; }
+
+
+ public decimal money { get; set; }
+
+ public decimal tax { get; set; }
+ public decimal sum { get; set; }
+
+ public string requiredate { get; set; }
+
+ public string arrivedate { get; set; }
+
+ public string item_class { get; set; }
+
+ public string item_code { get; set; }
+
+ public decimal btaxcost { get; set; }
+
+ public decimal num { get; set; }
+
+
+ public string unitid { get; set; }
+
+ public string deptcodeexec { get; set; }
+ public string personcodeexec { get; set; }
+
+ public string currency_name { get; set; }
+
+ public decimal currency_rate { get; set; }
+
+ public string originalprice { get; set; }
+ public string originalmoney { get; set; }
+
+ public string originaltax { get; set; }
+
+ public string originalsum { get; set; }
+
+
+ public string ivouchrowno { get; set; }
+ //
+ //107001
+ //456
+ //
+ //
+ //
+ //
+ //
+ //
+ //2020-12-17
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //人民币
+ //1
+ //
+ //
+ //
+ //
+ //
+ //
+ }
+}
diff --git a/U8AppMain/Purchase/HeaderEnity.cs b/U8AppMain/Purchase/HeaderEnity.cs
new file mode 100644
index 0000000..a8361c8
--- /dev/null
+++ b/U8AppMain/Purchase/HeaderEnity.cs
@@ -0,0 +1,67 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace U8AppMain.Purchase
+{
+ public class HeaderEnity
+ {
+ public string code { get; set; }
+ public string date { get; set; }
+ public string departmentcode { get; set; }
+ public string personcode { get; set; }
+ public string purchasetypecode { get; set; }
+
+ public string businesstype { get; set; }
+
+ public string maker { get; set; }
+
+ public string define1 { get; set; }
+ public string define2 { get; set; }
+ public string define3 { get; set; }
+ public string define4 { get; set; }
+ public string define5 { get; set; }
+ public string define6 { get; set; }
+ public string define7 { get; set; }
+ public string define8 { get; set; }
+ public string define9 { get; set; }
+ public string define10 { get; set; }
+ public string define11{ get; set; }
+
+ public string define12 { get; set; }
+ public string define13 { get; set; }
+ public string define14 { get; set; }
+ public string define15 { get; set; }
+ public string define16 { get; set; }
+ public string memory { get; set; }
+
+ // CGQGD2132131
+ //2020-12-17
+ //51
+ //0031
+ //01
+ //普通采购
+ //苏青红
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+
+
+ }
+}
diff --git a/U8AppMain/Purchase/PurchaseEnity.cs b/U8AppMain/Purchase/PurchaseEnity.cs
new file mode 100644
index 0000000..5b0396b
--- /dev/null
+++ b/U8AppMain/Purchase/PurchaseEnity.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace U8AppMain.Purchase
+{
+ public class PurchaseEnity
+ {
+ public HeaderEnity header { get; set; } = new HeaderEnity();
+
+
+ //public BodyEnity body { get; set; } = new BodyEnity();
+ public List body { get; set; } = new List();
+ }
+}
diff --git a/U8AppMain/Purchase/ufinterface.cs b/U8AppMain/Purchase/ufinterface.cs
new file mode 100644
index 0000000..51a581e
--- /dev/null
+++ b/U8AppMain/Purchase/ufinterface.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace U8AppMain.Purchase
+{
+ public class ufinterface
+ {
+ [System.Xml.Serialization.XmlAttribute]
+ public string roottag { get; set; }
+
+ [System.Xml.Serialization.XmlAttribute]
+ public string billtype { get; set; }
+ [System.Xml.Serialization.XmlAttribute]
+ public string docid { get; set; }
+ [System.Xml.Serialization.XmlAttribute]
+ public string receiver { get; set; }
+ [System.Xml.Serialization.XmlAttribute]
+ public string sender { 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 version { get; set; }
+
+
+
+ //roottag="purchaseapp"
+ // billtype=""
+ // docid="123"
+ // receiver="u8"
+ // sender="003"
+ // proc="add"
+ // codeexchanged="N"
+ // exportneedexch="N"
+ // version="2.0"
+
+
+ public PurchaseEnity purchaseapp { get; set; } = new PurchaseEnity();
+
+
+
+
+ }
+}
diff --git a/U8AppMain/U8AppMain.csproj b/U8AppMain/U8AppMain.csproj
new file mode 100644
index 0000000..3475ae7
--- /dev/null
+++ b/U8AppMain/U8AppMain.csproj
@@ -0,0 +1,115 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {8A6603B0-444A-49C7-80C9-195638129068}
+ WinExe
+ U8AppMain
+ U8AppMain
+ v4.5
+ 512
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ ..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Design.dll
+
+
+ ..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Docking.dll
+
+
+ ..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Navigator.dll
+
+
+ ..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Ribbon.dll
+
+
+ ..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Toolkit.dll
+
+
+ ..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Workspace.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ FrmMain.cs
+
+
+
+
+
+
+
+
+
+
+ FrmMain.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/U8AppMain/XmlHelper.cs b/U8AppMain/XmlHelper.cs
new file mode 100644
index 0000000..5a8f285
--- /dev/null
+++ b/U8AppMain/XmlHelper.cs
@@ -0,0 +1,59 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+using System.Xml;
+using System.Xml.Serialization;
+
+namespace U8AppMain
+{
+ ///
+ /// XML转化对象
+ ///
+ public static class XmlHelper
+ {
+ private static void XmlSerializeInternal(Stream stream, object o, Encoding encoding)
+ {
+
+
+ XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
+ ns.Add("", "");
+ XmlSerializer serializer = new XmlSerializer(o.GetType());
+ XmlWriterSettings settings = new XmlWriterSettings();
+ settings.Indent = true;
+ settings.NewLineChars = "\r\n";
+ settings.Encoding = encoding;
+ settings.IndentChars = " ";
+ settings.NamespaceHandling = NamespaceHandling.OmitDuplicates;
+ using (XmlWriter writer = XmlWriter.Create(stream, settings))
+ {
+ serializer.Serialize(writer, o, ns);
+ writer.Close();
+ }
+ }
+
+ ///
+ /// 将一个对象序列化为XML字符串
+ ///
+ /// 要序列化的对象
+ /// 编码方式
+ /// 序列化产生的XML字符串
+ public static string XmlSerialize(object o, Encoding encoding)
+ {
+ using (MemoryStream stream = new MemoryStream())
+ {
+ XmlSerializeInternal(stream, o, encoding);
+
+ stream.Position = 0;
+ using (StreamReader reader = new StreamReader(stream, encoding))
+ {
+ return reader.ReadToEnd();
+ }
+ }
+ }
+
+
+ }
+
+}
diff --git a/U8AppMain/packages.config b/U8AppMain/packages.config
new file mode 100644
index 0000000..78bbd27
--- /dev/null
+++ b/U8AppMain/packages.config
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file