var LineItems = from el in ord.Elements(sync + "DataArea")
.Elements(sync + "SalesOrder")
.Elements(sync + "SalesOrderLine")
select el;
string ItemNo = "";
string loc = "";
double qty_ordered = 0;
double price = 0;
foreach (var LineItem in LineItems)
{
ItemNo = (string)LineItem.Element(sync + "Item").Element(sync + "ItemID").Element(sync + "ID").Value;
OrderHeader.OrdLines.Add(new OrderLine()
{
item_no = ItemNo,
loc = loc,
qty_ordered = qty_ordered,
price = price,
promDate = DateTime.Now.Date,
reqDate = DateTime.Now.Date,
reqShipDate = DateTime.Now.Date,
});
ItemNo = "";
loc = "";
qty_ordered = 0;
price = 0;
}
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY