예제 #1
0
 public void localizar()
 {
     try
     {
         objDAL          = new TelasDAL();
         this.per_codigo = objDAL.localizar(this.ct_nome);
         objDAL          = null;
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public void inserir()
 {
     try
     {
         objDAL = new TelasDAL();
         objDAL.inserir(this.ct_nome, this.per_codigo, this.ct_status, this.ct_name);
         objDAL = null;
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
 public void excluir()
 {
     try
     {
         objDAL = new TelasDAL();
         objDAL.excluir(this.per_codigo);
         objDAL = null;
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #4
0
 public DataTable localizarComRetorno(String descricao, String atributo)
 {
     try
     {
         DataTable tab;
         objDAL = new TelasDAL();
         tab    = objDAL.localizar(descricao, atributo);
         objDAL = null;
         return(tab);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #5
0
 public void localizar(String descricao, String atributo)
 {
     try
     {
         DataTable tab;
         objDAL = new TelasDAL();
         tab    = objDAL.localizar(descricao, atributo);
         if (tab.Rows.Count > 0)
         {
             this.per_codigo = int.Parse(tab.Rows[0]["per_codigo"].ToString());
             this.ct_nome    = tab.Rows[0]["ct_nome"].ToString();
             this.ct_status  = tab.Rows[0]["ct_status"].ToString();
             this.ct_name    = tab.Rows[0]["ct_name"].ToString();
         }
         objDAL = null;
     }
     catch (Exception)
     {
         throw;
     }
 }