예제 #1
0
 public void localizar()
 {
     try
     {
         DataTable tab;
         objDAL = new ConfiguracoesDAL();
         tab    = objDAL.localizar();
         if (tab.Rows.Count > 0)
         {
             this.codigo             = int.Parse(tab.Rows[0]["id"].ToString());
             this.cnpj_softwarehouse = tab.Rows[0]["cnpj_sh"].ToString();
             this.codigo_vinculacao  = tab.Rows[0]["codigo_vinculacao"].ToString();
             this.emp_reducao        = tab.Rows[0]["empresa_reducao"].ToString();
             this.emp_tributos       = tab.Rows[0]["empresa_tributo"].ToString();
             this.acbr_path          = tab.Rows[0]["acbr_path"].ToString();
         }
         objDAL = null;
     }
     catch (Exception)
     {
         throw;
     }
 }