Exemple #1
0
        public Customer(CustomerImport customerImport)
            : this()
        {
            this.Email      = customerImport.Email;
            this.Status     = customerImport.Status;
            this.SaveDate   = customerImport.SaveDate;
            this.UpdateDate = customerImport.UpdateDate;

            this.Addresses.AddRange(customerImport.Address);
        }
Exemple #2
0
        public Company(CustomerImport customerImport)
            : base(customerImport)
        {
            var company = customerImport as CompanyImport;

            this.CompanyName = company.CompanyName;
            this.TradeName   = company.TradeName;
            this.Cnpj        = company.CNPJ;
            this.Ie          = company.IE;
            this.Im          = company.IM;
            this.Type        = CustomerType.Company;
        }
Exemple #3
0
        public Person(CustomerImport customerImport)
            : base(customerImport)
        {
            var person = customerImport as PersonImport;

            this.FirstName = person.FirstName;
            this.LastName  = person.LastName;
            this.Cpf       = person.CPF;
            this.Rg        = person.RG;
            this.BirthDate = person.BirthDate;
            this.Gender    = person.Gender;
            this.Type      = CustomerType.Person;
        }