예제 #1
0
 public void localizar()
 {
     try
     {
         objDAL          = new FornecedoresDAL();
         this.for_codigo = objDAL.localizar(this.for_codigo);
         objDAL          = null;
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public DataTable localizarComRetorno(String descricao, String atributo)
 {
     try
     {
         DataTable tab;
         objDAL = new FornecedoresDAL();
         tab    = objDAL.localizar(descricao, atributo);
         objDAL = null;
         return(tab);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
 public void localizar(String descricao, String atributo)
 {
     try
     {
         DataTable tab;
         objDAL = new FornecedoresDAL();
         tab    = objDAL.localizar(descricao, atributo);
         if (tab.Rows.Count > 0)
         {
             this.for_codigo          = int.Parse(tab.Rows[0]["for_codigo"].ToString());
             this.for_razaoSocial     = tab.Rows[0]["for_razaoSocial"].ToString();
             this.for_cnpj            = tab.Rows[0]["for_cnpj"].ToString();
             this.for_ie              = tab.Rows[0]["for_ie"].ToString();
             this.for_email           = tab.Rows[0]["for_email"].ToString();
             this.for_cep             = tab.Rows[0]["for_cep"].ToString();
             this.for_logradouro      = tab.Rows[0]["for_logradouro"].ToString();
             this.for_numero          = tab.Rows[0]["for_numero"].ToString();
             this.for_complemento     = tab.Rows[0]["for_complemento"].ToString();
             this.for_bairro          = tab.Rows[0]["for_bairro"].ToString();
             this.for_cidade          = int.Parse(tab.Rows[0]["for_cidade"].ToString());
             this.for_telefone        = tab.Rows[0]["for_telefone"].ToString();
             this.for_fax             = tab.Rows[0]["for_fax"].ToString();
             this.for_status          = tab.Rows[0]["for_status"].ToString();
             this.for_cpf             = tab.Rows[0]["for_cpf"].ToString();
             this.for_rg              = tab.Rows[0]["for_rg"].ToString();
             this.for_tipo_fornecedor = tab.Rows[0]["for_tipo_fornecedor"].ToString();
             this.for_nome            = tab.Rows[0]["for_nome"].ToString();
             this.for_tipo            = tab.Rows[0]["for_tipo"].ToString();
         }
         objDAL = null;
     }
     catch (Exception)
     {
         throw;
     }
 }