Example #1
0
 //Construtor com PK
 public Fornecedor(int codigo, Endereco Supplier_Address,Membro membro,string Name, long cnpj, long phone  )
 {
     Cod_Fornecedor = codigo;
     Membro_cod = membro.Cod_Membro1;
     Nome = Name;
     CNPJ_CPF = cnpj;
     Telefone = phone;
     Endereco_Fornecedor = Supplier_Address.Cod_end;
 }
Example #2
0
 // Construtor sem PK
 public Igreja(Endereco Church_Address, string Name, long cnpj, long phone, int Matrix, int active)
 {
     Endereco_Igreja = Church_Address.Cod_end;
     Nome = Name;
     CNPJ = cnpj;
     Telefone = phone;
     Matriz = Matrix;
     ativo = active;
 }
Example #3
0
 public bool Delete(Endereco address)
 {
     try
     {
         DadosdoEndereco.Excluir(address);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #4
0
 public bool Alter(Endereco address)
 {
     try
     {
         DadosdoEndereco.Alterar(address);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #5
0
 //Construtor sem PK
 public Membro(Cargo Office, Endereco Member_Address, string Name, DateTime Birth_Date, long cpf, int registro_geral, DateTime Register_Date, DateTime Baptism_Date, long Phone, int active, string sex)
 {
     Cargo_Membro2 = Office.Cod_Cargo1;
     Endereco_Membro = Member_Address.Cod_end;
     Nome = Name;
     Data_Nascimento = Birth_Date;
     CPF = cpf;
     RG = registro_geral;
     Data_Cadastro = Register_Date;
     Data_Batismo = Baptism_Date;
     Telefone = Phone;
     Ativo = active;
     Sexo = sex;
 }
Example #6
0
 public bool Insert(Endereco address)
 {
     try
     {
             DadosdoEndereco.Inserir(address);
             return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #7
0
 public Endereco alt_end(int bbairro, int type, string Street, string number, int zipcode)
 {
     end = new Endereco(bbairro, type, Street, number, zipcode);
     return end;
 }
Example #8
0
 public bool Insert(Cargo Office, Endereco Member_Address, string Name, DateTime Birth_Date, long cpf, int registro_geral, DateTime Register_Date, DateTime Baptism_Date, long Phone, int active, string sex)
 {
     Membro member = new Membro(Office, Member_Address, Name, Birth_Date, cpf, registro_geral, Register_Date, Baptism_Date, Phone, active, sex);
     try
     {
         DadosdoMembro.Inserir(member);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #9
0
 public Membro formamembro(int id,Cargo Office, Endereco Member_Address, string Name, DateTime Birth_Date, long cpf, int registro_geral, DateTime Register_Date, DateTime Baptism_Date, long Phone, int active, string sex)
 {
     Membro membro = new Membro(id, Office, Member_Address, Name, Birth_Date, cpf, registro_geral, Register_Date, Baptism_Date, Phone, active, sex);
     return membro;
 }