示例#1
0
        public static DocsPAWA.DocsPaWR.InfoDelega[] SearchDeleghe(Page page, SearchDelegaInfo searchInfo, ref SearchPagingContext pagingContext)
        {
            DocsPAWA.DocsPaWR.InfoDelega[] deleghe = null;
            try
            {
                DocsPAWA.DocsPaWR.InfoUtente infoUtente = null;
                if (searchInfo.TipoDelega != "tutte")
                {
                    infoUtente = UserManager.getInfoUtente(page);
                }

                deleghe = docsPaWS.DelegaSearch(infoUtente, searchInfo, ref pagingContext);
                if (deleghe == null)
                {
                    throw new Exception();
                }
                return(deleghe);
            }
            catch (Exception es)
            {
                ErrorManager.redirect(page, es);
            }
            return(deleghe);
        }