예제 #1
0
        /// <summary>
        ///  Busca parametros por id 
        ///  La cadena de conexión se obtiene del atributo appId del wrapper 
        /// </summary>
        /// <param name="wrapperProviderName">Proveedor que espesifica el despachador de servicios</param>
        /// <param name="paramTypeId"></param>
        /// <param name="parentId"></param>
        /// <param name="userId"></param>
        /// <returns>Lista de registros de la tabla param</returns>
        public static ParamList SearchParams(string wrapperProviderName, int? parentId, string userId)
        {
            SearchParamsReq req = new SearchParamsReq();
     
            req.BusinessData.ParentId = parentId;
            req.BusinessData.Enabled = true;
            req.ContextInformation.UserId = userId;

            SearchParamsRes res = req.ExecuteService<SearchParamsReq, SearchParamsRes>(wrapperProviderName, req);

            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            return res.BusinessData;
        }
예제 #2
0
        /// <summary>
        ///  Busca parametros por id
        ///  La cadena de conexión se obtiene del atributo appId del wrapper
        /// </summary>
        /// <param name="wrapperProviderName">Proveedor que espesifica el despachador de servicios</param>
        /// <param name="paramTypeId"></param>
        /// <param name="parentId"></param>
        /// <param name="userId"></param>
        /// <returns>Lista de registros de la tabla param</returns>
        public static ParamList SearchParams(string wrapperProviderName, int?parentId, string userId)
        {
            SearchParamsReq req = new SearchParamsReq();

            req.BusinessData.ParentId     = parentId;
            req.BusinessData.Enabled      = true;
            req.ContextInformation.UserId = userId;

            SearchParamsRes res = req.ExecuteService <SearchParamsReq, SearchParamsRes>(wrapperProviderName, req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
            return(res.BusinessData);
        }