public void localizar() { try { objDAL = new FormaPagamentoDAL(); this.fp_codigo = objDAL.localizar(this.fp_codigo); objDAL = null; } catch (Exception) { throw; } }
public DataTable localizarComRetorno(String descricao, String atributo) { try { DataTable tab; objDAL = new FormaPagamentoDAL(); tab = objDAL.localizar(descricao, atributo); objDAL = null; return(tab); } catch (Exception) { throw; } }
public void localizar(String descricao, String atributo) { try { DataTable tab; objDAL = new FormaPagamentoDAL(); tab = objDAL.localizar(descricao, atributo); if (tab.Rows.Count > 0) { this.fp_codigo = int.Parse(tab.Rows[0]["fp_codigo"].ToString()); this.fp_descricao = tab.Rows[0]["fp_descricao"].ToString(); } objDAL = null; } catch (Exception) { throw; } }