Ejemplo n.º 1
0
 private void downloadCustomers()
 {
     CustomerAccount customers = new CustomerAccount();
     CustomerAccountCollection results = (CustomerAccountCollection) MZ.Request(customers, typeof(CustomerAccountCollection));
     if (results.Items != null) {
         foreach (CustomerAccount customer in results.Items) {
             //Warehouse.Warwick.Customer c = new Warehouse.Warwick.Customer();
             Warehouse.Customer c = new Warehouse.Customer();
             //c.customer.system = _system;
             c.FirstName = c.FirstName;
             c.MiddleName = c.MiddleName;
             c.LastName = c.LastName;
             c.Address1 = c.Address1;
             c.Address2 = c.Address2;
             c.City = c.City;
             c.State = c.State;
             c.ZipCode = c.ZipCode;
             c.Country = c.Country;
             c.Phone = c.Phone;
             c.PhoneExtension = c.PhoneExtension;
             c.Email = c.Email;
             c.Fax = c.Fax;
             c.Save();
         }
     }
 }