public static ParametroList SearchParametroByParams(int?pIdTipo, int?pIdParametroRef) { SearchParametroByParamsReq req = new SearchParametroByParamsReq(); req.BusinessData.IdTipoParametro = pIdTipo; req.BusinessData.IdParametroRef = pIdParametroRef; req.BusinessData.Vigente = true; #if (DEBUG == false) req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); if (Controller.CurrentHealthInstitution != null) { req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString(); } #endif SearchParametroByParamsRes res = req.ExecuteService <SearchParametroByParamsReq, SearchParametroByParamsRes>(req); if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } return(res.BusinessData); }
/// <summary> /// Busca parametros por tipo y parent ref /// </summary> /// <param name="pIdTipo">Param tipe</param> /// <param name="pIdParametroRef">Referencia</param> /// <returns></returns> public static ParametroList SearchParametroByParams(int?pIdTipo, int?pIdParametroRef) { SearchParametroByParamsReq req = new SearchParametroByParamsReq(); req.BusinessData.IdTipoParametro = pIdTipo; req.BusinessData.IdParametroRef = pIdParametroRef; req.BusinessData.Vigente = true; SearchParametroByParamsRes res = req.ExecuteService <SearchParametroByParamsReq, SearchParametroByParamsRes>(req); //Control de errores ante llamadas if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } Exception es = Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);; return(res.BusinessData); }
/// <summary> /// Busca parametros por tipo y parent ref /// </summary> /// <param name="pIdTipo">Param tipe</param> /// <param name="pIdParametroRef">Referencia</param> /// <returns></returns> public static ParametroList SearchParametroByParams(int? pIdTipo, int? pIdParametroRef) { SearchParametroByParamsReq req = new SearchParametroByParamsReq(); req.BusinessData.IdTipoParametro = pIdTipo; req.BusinessData.IdParametroRef = pIdParametroRef; req.BusinessData.Vigente = true; SearchParametroByParamsRes res = req.ExecuteService<SearchParametroByParamsReq, SearchParametroByParamsRes>(req); //Control de errores ante llamadas if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); Exception es = Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); ; return res.BusinessData; }
public static ParametroList SearchParametroByParams(int? pIdTipo, int? pIdParametroRef) { SearchParametroByParamsReq req = new SearchParametroByParamsReq(); req.BusinessData.IdTipoParametro = pIdTipo; req.BusinessData.IdParametroRef = pIdParametroRef; req.BusinessData.Vigente = true; #if (DEBUG ==false) req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); if (Controller.CurrentHealthInstitution != null) req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString(); #endif SearchParametroByParamsRes res = req.ExecuteService<SearchParametroByParamsReq, SearchParametroByParamsRes>(req); if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); return res.BusinessData; }