示例#1
0
 public void localizar()
 {
     try
     {
         objDAL          = new CentroDeCustoDAL();
         this.ccs_codigo = objDAL.localizar(this.ccs_codigo);
         objDAL          = null;
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#2
0
 public DataTable localizarComRetorno(String descricao, String atributo)
 {
     try
     {
         DataTable tab;
         objDAL = new CentroDeCustoDAL();
         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 CentroDeCustoDAL();
         tab    = objDAL.localizar(descricao, atributo);
         if (tab.Rows.Count > 0)
         {
             this.ccs_codigo    = int.Parse(tab.Rows[0]["ccs_codigo"].ToString());
             this.ccs_descricao = tab.Rows[0]["ccs_descricao"].ToString();
         }
         objDAL = null;
     }
     catch (Exception)
     {
         throw;
     }
 }