Exemplo n.º 1
0
 public CustomerDetail(Customer customer)
 {
     Id            = customer.Id;
     FirstName     = customer.FirstName;
     LastName      = customer.LastName;
     Email         = customer.Email;
     Phone         = customer.Phone;
     Address       = customer.Address;
     StreetAddress = customer.StreetAddress;
     City          = customer.City;
     Barcode       = customer.Barcode;
     Points        = customer.Points;
     Country       = new CountryDetail(customer.Country);
 }
 public OrganizationDetail(Organization org)
 {
     Name            = org.Name;
     OwnerName       = org.OwnerName;
     Address         = org.Address;
     City            = org.City;
     Phone           = org.Phone;
     Telephone       = org.TelePhone;
     Email           = org.Email;
     Website         = org.Website;
     FinancialNumber = org.FinancialNumber;
     Country         = new CountryDetail(org.Country.Id, org.Country.Code, org.Country.Name);
     Currency        = new CurrencyDetail(org.Currency.Id, org.Currency.Code);
 }
Exemplo n.º 3
0
 public VendorDetail(Vendor vendor)
 {
     Id        = vendor.Id;
     FirstName = vendor.FirstName;
     LastName  = vendor.LastName;
     Address1  = vendor.Address1;
     Address2  = vendor.Address2;
     Phone     = vendor.Phone;
     Telephone = vendor.Telephone;
     Email     = vendor.Email;
     Website   = vendor.Website;
     City      = vendor.City;
     Note      = vendor.Note;
     Country   = new CountryDetail {
         Id = vendor.Country.Id, Name = vendor.Country.Name, Code = vendor.Country.Code
     };
 }