public void execProcesarDiversos(int cotizacionID) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { activeContext.ExecuteCommand("exec bk_sp_UpdatePrimaDiversos @CotizacionID={0}", cotizacionID); activeContext.ExecuteCommand("exec bk_sp_UpdateCotizacionSubLineaNegocioPrima @CotizacionID={0}", cotizacionID); activeContext.ExecuteCommand("exec bk_sp_UpdateCotizacionResumen @CotizacionID={0}", cotizacionID); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execUpdateCotizacionCoberturaUbicacion(int cotizacionID) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_UpdateCotizacionCoberturaUbicacion @CotizacionID={0}", cotizacionID)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execUpdateCotizacionEq(int cotizacionID, string equiposXML, string nombreArchivo) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_InsertCotizacionEqContratistaEquipo @CotizacionID={0}, @datosEquipos={1}, @fileName = {2}", cotizacionID, equiposXML, nombreArchivo)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execDeleteCotizacionEqContratistaEquipo() { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_DeleteEqContratistaEquipo", null)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execUpdateCotizacionTexto(int cotizacionID, string vectorXML, string valoresAdicionalesXML) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_UpdateCotizacionTexto @CotizacionID={0}, @datosTexto={1}, @datosAdicionales = {2}", cotizacionID, vectorXML, valoresAdicionalesXML)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execUpdateCotizacionSubLineaNegocio(int cotizacionID, string datosSubLineaXML, string datosIncendioXML, string primerRiesgoXML) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_UpdateCotizacionSubLineaNegocio @CotizacionID={0}, @datosSubLinea={1}, @datosIncendio={2}, @datosPrimerRiesgo={3}", cotizacionID, datosSubLineaXML, datosIncendioXML, primerRiesgoXML)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execWorkFlow(string command) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand(command, null)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execAddAccionRol(int rolID, int accionID) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_AddRolAccion @RolID={0}, @AccionID={1}", rolID, accionID)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }
public int execSaveCotizacionPagador(CotizacionPagador cotizacionPagador) { IMainModuleUnitOfWork activeContext = this.UnitOfWork as IMainModuleUnitOfWork; if (activeContext != null) { return(activeContext.ExecuteCommand("exec bk_sp_UpdateCotizacionPagador @cotizacionID={0}, @cod_conducto = {1}, @cod_banco = {2}, @ind_conducto = {3}, " + "@rfc = {4}, @nroTarjeta = {5}, @nombre = {6}", cotizacionPagador.CotizacionID, cotizacionPagador.COD_CONDUCTO, cotizacionPagador.COD_BANCO_EMI, cotizacionPagador.SISEind_conducto, cotizacionPagador.RFC, cotizacionPagador.NroTarjeta, cotizacionPagador.nombre)); } else { throw new InvalidOperationException(string.Format( CultureInfo.InvariantCulture, Messages.exception_InvalidStoreContext, this.GetType().Name)); } }