不断收到类似“从 XML 读取日期类型的值时出错”这样的异常消息。使用 aif 插入 salesorder 时。
//string deliverdt = "19/05/2017";
DateTime date = DateTime.ParseExact(deliverdt, "dd/MM/yyyy", null);
AxdEntity_SalesTable salesTable = new AxdEntity_SalesTable();
salesTable.CurrencyCode = "USD";
salesTable.CustAccount = "C-000003";
salesTable.DeliveryDate = new DateTime(2017, 5, 19); // Convert.ToDateTime("19/05/2017"); //System.DateTime.Now;
// salesTable.DeliveryDate = Convert.ToDateTime(dt);
//Convert.ToDateTime("5/19/2017");
salesTable.Payment = "N07";
salesTable.PurchOrderFormNum = "PO";
AxdEntity_SalesLine salesLine = new AxdEntity_SalesLine();
salesLine.ItemId = "A3300-HV";
salesLine.SalesQty = 1;
salesLine.SalesUnit = "ea";
salesLine.SalesPrice = 2000;