public void Seleziona(int id, out string gridTempId) { logger.Debug("SchedaRicerca.Seleziona"); DocsPaWR.SearchItem item = null; try { gridTempId = string.Empty; DocsPaWR.DocsPaWebService docspaws = ProxyManager.getWS(); logger.Debug("SchedaRicerca.Seleziona - Sto per cercare la ricerca: " + id); item = docspaws.RecuperaRicerca(id); if (item == null) { logger.Debug("SchedaRicerca.Seleziona - Ricerca non trovata"); throw new Exception("Ricerca non trovata"); } else { logger.Debug("SchedaRicerca.Seleziona - Ricerca trovata"); if (!string.IsNullOrEmpty(item.gridId)) { gridTempId = item.gridId; } logger.Debug("SchedaRicerca.Seleziona - Deserializzazione dei filtri"); filters = SchedaRicerca.StringToFilters(item.filtri); logger.Debug("SchedaRicerca.Seleziona - Filtri deserializzati"); } } catch (Exception ex) { logger.Debug("SchedaRicerca.Seleziona - Errore nella selezione della ricerca: " + ex.Message); throw ex; } }