Why is that when I call this function it does update the tables but ignores any other changes made on the Screen, Would someone please explain that …
Action<int, int, string, string > UpdateOrderGroundInfo = (inOrderNumber, inOrderLine, inPlant, inWarehouseCode) =>
{
using (var txScope = IceContext.CreateDefaultTransactionScope())
{
foreach (var DBOrderHed_iterator in (from DBOrderHed_Row in Db.OrderRel
where
(int) DBOrderHed_Row.OrderNum == (int) inOrderNumber &&
(int) DBOrderHed_Row.OrderLine == (int) inOrderLine
select DBOrderHed_Row))
{
OrderRel = DBOrderHed_iterator;
if (OrderRel != null)
{
OrderRel.Plant = inPlant;
OrderRel.WarehouseCode = inWarehouseCode;
}
//Db.OrderRel.Update(OrderRel);
Db.Validate();
} /// END if (DBOrderHed != null)
txScope.Complete();
} ///
using (var SalesOrderSvc = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.SalesOrderSvcContract>(Db))
{
var SalesOrderDs = SalesOrderSvc.GetByID(inOrderNumber);
this.dsHolder.Attach(SalesOrderDs);
}
};