public override string EjecutarAccion() { RespuestaBlotdddsjv respuestaBlotdddsjv = HelperIbs.ibsBloqueoTd(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.Stjtadbto, this.Smotivo); if (!string.IsNullOrEmpty(respuestaBlotdddsjv.blotdddsjv.EErrores.SVectorCod)) { throw new IBException(respuestaBlotdddsjv.blotdddsjv.EErrores.SVectorCod, "IBS"); } return(null); }
public static RespuestaBlotdddsjv ibsBloqueoTd(long SUserId, string SCedRif, string STjta, string SMotivo) { BlotdddsjvIn blotdddsjvIn = new BlotdddsjvIn() { SUserId = SUserId.ToString(), SCedRif = SCedRif, SNroCta = STjta, SMotivBloq = SMotivo, SPrefijo = string.Empty, SFiller = string.Empty }; RespuestaBlotdddsjv respuestaBlotdddsjv = null; using (IbsServiceService ibsServiceService = new IbsServiceService()) { ibsServiceService.Timeout = 10000; try { respuestaBlotdddsjv = ibsServiceService.ibaBloqueoTd(blotdddsjvIn); if (respuestaBlotdddsjv == null) { throw new IBException(9998, "SQLIB"); } if (!string.IsNullOrEmpty(respuestaBlotdddsjv.SError)) { throw new IBException(respuestaBlotdddsjv.SError, "SQLIB"); } } catch (WebException webException) { throw new IBException(9997, "SQLIB"); } catch (SoapException soapException) { throw new IBException(9997, "SQLIB"); } } return(respuestaBlotdddsjv); }