Example #1
0
        public CliFor(string nomeCliFor, string rg, string cpfCnpj, DateTime?dtDataNasc, TypeCliente tipoCliente,
                      string telefone, string celular, string telComercial, TypeClassificaoCliente classificacao)
            : base(nomeCliFor, rg, cpfCnpj, dtDataNasc, tipoCliente, telefone, celular, telComercial)
        {
            this.Vendas          = new HashSet <Venda>();
            this.Enderecos       = new HashSet <EnderecoCliFor>();
            this.CreditosCliente = new HashSet <CreditoCliente>();

            this.Atendimentos = new HashSet <Atendimento>();
            this.Manutencoes  = new HashSet <Manutencao>();

            this.AtividadesPrincipais  = new HashSet <AtividadePrincipalCliFor>();
            this.AtividadesSecundarias = new HashSet <AtividadeSecundariaCliFor>();
            this.Classificacao         = classificacao;
        }
Example #2
0
 public XFrmAddCliForOld(TypeClassificaoCliente type) : this()
 {
     this.TypeClassificaoCliFor = type;
 }
Example #3
0
 public XFrmCliForView(TypeClassificaoCliente type)
 {
     init();
     radioGroupTipoCliFor.SelectedIndex  = (int)type;
     cbClassificacaoClifor.SelectedIndex = (int)type;
 }
Example #4
0
        public CliFor(string nomeCliFor, string rg, string cpfCnpj, DateTime?dtDataNasc, TypeCliente tipoCliente,
                      string telefone, string celular, string telComercial, List <EnderecoCliFor> enderecos, TypeClassificaoCliente classificacao)
            : this(nomeCliFor, rg, cpfCnpj, dtDataNasc, tipoCliente, telefone, celular,
                   telComercial, classificacao)
        {
            foreach (var a in enderecos)
            {
                this.Enderecos.Add(a);

                if (a.TipoEndereco == "Comercial")
                {
                    this.NumeroEndereco = a.NumeroEndereco;
                    this.NomeEndereco   = a.NomeEndereco;
                    this.Cep            = a.Cep.Replace(".", "");
                    this.Cidade         = a.Cidade;
                    this.Uf             = a.Uf;
                    this.Complemento    = a.Complemento;
                    this.TipoEndereco   = a.TipoEndereco;
                    this.Bairro         = a.Bairro;
                }
            }
        }