修正项目

This commit is contained in:
admin
2021-01-05 11:11:28 +08:00
parent 56d6cc89e9
commit e9b4b307c9
93 changed files with 2524 additions and 156 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace U8AppMain.Purchase
{
public class BodyEnity
{
[System.Xml.Serialization.XmlElement(Type =typeof(entry),ElementName = "entry")]
public List<entry> entries { get; set; } = new List<entry>();
}
}

View File

@@ -0,0 +1,88 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace U8AppMain.Purchase
{
public class entry
{
//public string vendorcode { get; set; }
public string inventorycode { get; set; }
public decimal 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 string 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; } = 1;
//public string originalprice { get; set; }
//public string originalmoney { get; set; }
//public string originaltax { get; set; }
//public string originalsum { get; set; }
public int ivouchrowno { get; set; }
// <vendorcode />
//<inventorycode>107001</inventorycode>
//<quantity>456</quantity>
//<price />
//<taxrate />
//<taxprice />
//<money />
//<tax />
//<sum />
//<requiredate>2020-12-17</requiredate>
//<arrivedate />
//<item_class />
//<item_code />
//<item_name />
//<btaxcost />
//<num />
//<unitid />
//<deptcodeexec />
//<personcodeexec />
//<currency_name>人民币</currency_name>
//<currency_rate>1</currency_rate>
//<originalprice />
//<originaltaxedprice />
//<originalmoney />
//<originaltax />
//<originalsum />
//<ivouchrowno />
}
}

View File

@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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; }
// <code>CGQGD2132131</code>
//<date>2020-12-17</date>
//<departmentcode>51</departmentcode>
//<personcode>0031</personcode>
//<purchasetypecode>01</purchasetypecode>
//<businesstype>普通采购</businesstype>
//<maker>苏青红</maker>
//<define1 />
//<define2 />
//<define3 />
//<define4 />
//<define5 />
//<define6 />
//<define7 />
//<define8 />
//<define9 />
//<define10 />
//<define11 />
//<define12 />
//<define13 />
//<define14 />
//<define15 />
//<define16 />
//<memory />
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace U8AppMain.Purchase
{
public class PurchaseEnity
{
public HeaderEnity header { get; set; } = new HeaderEnity();
//public BodyEnity body { get; set; } = new BodyEnity();
public List<entry> body { get; set; } = new List<entry>();
}
}

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace U8AppMain.Purchase
{
public class ufinterface
{
//roottag="purchaseapp" billtype="" docid="123" receiver="u8" sender="003"
// proc="add" codeexchanged="N" exportneedexch="N" version="2.0"
[System.Xml.Serialization.XmlAttribute]
public string roottag { get; set; } = "purchaseapp";
[System.Xml.Serialization.XmlAttribute]
public string billtype { get; set; } = "";
[System.Xml.Serialization.XmlAttribute]
public string docid { get; set; } = "123";
[System.Xml.Serialization.XmlAttribute]
public string receiver { get; set; } = "u8";
[System.Xml.Serialization.XmlAttribute]
public string sender { get; set; } = "003";
[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 version { get; set; } = "2.0";
public PurchaseEnity purchaseapp { get; set; } = new PurchaseEnity();
}
}