Exemplo n.º 1
0
        //Restituisce la lista delle deleghe assegnate da un dato utente
        public static DocsPAWA.DocsPaWR.InfoDelega[] GetListaDeleghe(Page page, string tipoDelega, string statoDelega, string idAmm, out int numDeleghe)
        {
            numDeleghe = 0;
            DocsPAWA.DocsPaWR.InfoDelega[] deleghe = null;
            try
            {
                DocsPAWA.DocsPaWR.InfoUtente infoUtente = null;
                if (tipoDelega != "tutte")
                {
                    infoUtente = UserManager.getInfoUtente(page);
                }

                deleghe = docsPaWS.DelegaGetLista(infoUtente, tipoDelega, statoDelega, idAmm, out numDeleghe);
                if (deleghe == null)
                {
                    throw new Exception();
                }
                return(deleghe);
            }
            catch (Exception es)
            {
                ErrorManager.redirect(page, es);
            }
            return(deleghe);
        }