コード例 #1
0
 public void localizar()
 {
     try
     {
         objDAL         = new FormaPagamentoDAL();
         this.fp_codigo = objDAL.localizar(this.fp_codigo);
         objDAL         = null;
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
        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;
            }
        }