Esempio n. 1
0
        public static void Refresh(ShipperOrder tmp)
        {
            OrderInfo tmpInfo = GetExistingByPrimaryKey(tmp.OrderID);

            if (tmpInfo == null)
            {
                return;
            }
            tmpInfo.RefreshFields(tmp);
        }
Esempio n. 2
0
 private void RefreshFields(ShipperOrder tmp)
 {
     _CustomerID     = tmp.CustomerID;
     _EmployeeID     = tmp.EmployeeID;
     _OrderDate      = tmp.OrderDate;
     _RequiredDate   = tmp.RequiredDate;
     _ShippedDate    = tmp.ShippedDate;
     _Freight        = tmp.Freight;
     _ShipName       = tmp.ShipName;
     _ShipAddress    = tmp.ShipAddress;
     _ShipCity       = tmp.ShipCity;
     _ShipRegion     = tmp.ShipRegion;
     _ShipPostalCode = tmp.ShipPostalCode;
     _ShipCountry    = tmp.ShipCountry;
     _OrderInfoExtension.Refresh(this);
     _MyCustomer = null;
     _MyEmployee = null;
     _MyShipper  = null;
     OnChange();            // raise an event
 }