Пример #1
0
 public VendorManufacturer()
 {
     this.Bvin                    = string.Empty;
     this.LastUpdated             = DateTime.UtcNow;
     this.DisplayName             = string.Empty;
     this.EmailAddress            = string.Empty;
     this.Address                 = new Contacts.Address();
     this.DropShipEmailTemplateId = string.Empty;
     this.Contacts                = new List <VendorManufacturerContact>();
     this.ContactType             = VendorManufacturerType.Unknown;
 }
Пример #2
0
 public VendorManufacturer()
 {
     this.Bvin = string.Empty;
     this.LastUpdated = DateTime.UtcNow;
     this.DisplayName = string.Empty;
     this.EmailAddress = string.Empty;
     this.Address = new Contacts.Address();
     this.DropShipEmailTemplateId = string.Empty;
     this.Contacts = new List<VendorManufacturerContact>();
     this.ContactType = VendorManufacturerType.Unknown;
 }
Пример #3
0
        public void FromDto(VendorManufacturerDTO dto)
        {
            if (dto == null)
            {
                return;
            }

            this.Bvin         = dto.Bvin;
            this.LastUpdated  = dto.LastUpdated;
            this.DisplayName  = dto.DisplayName;
            this.EmailAddress = dto.EmailAddress;
            this.Address.FromDto(dto.Address);
            this.DropShipEmailTemplateId = dto.DropShipEmailTemplateId;
            this.Contacts.Clear();
            foreach (VendorManufacturerContactDTO c in dto.Contacts)
            {
                VendorManufacturerContact v = new VendorManufacturerContact();
                v.FromDto(c);
                this.Contacts.Add(v);
            }
            this.ContactType = (VendorManufacturerType)((int)dto.ContactType);
        }
Пример #4
0
        public void FromDto(VendorManufacturerDTO dto)
        {
            if (dto == null) return;

            this.Bvin = dto.Bvin;
            this.LastUpdated = dto.LastUpdated;
            this.DisplayName = dto.DisplayName;
            this.EmailAddress = dto.EmailAddress;
            this.Address.FromDto(dto.Address);
            this.DropShipEmailTemplateId = dto.DropShipEmailTemplateId;
            this.Contacts.Clear();
            foreach (VendorManufacturerContactDTO c in dto.Contacts)
            {
                VendorManufacturerContact v = new VendorManufacturerContact();
                v.FromDto(c);
                this.Contacts.Add(v);
            }
            this.ContactType = (VendorManufacturerType)((int)dto.ContactType);

        }