private void InserirLimiteInstrumento() { ClienteParametroBMFInstrumentoInfo info = new ClienteParametroBMFInstrumentoInfo(); InserirLimiteBMFInstrumentoRequest request = new InserirLimiteBMFInstrumentoRequest(); InserirLimiteBMFInstrumentoResponse response = new InserirLimiteBMFInstrumentoResponse(); info.IdClienteParametroBMF = 16; info.Instrumento = "INDZ13"; info.QtDisponivel = 5; info.QtTotalInstrumento = 5; info.QtTotalContratoPai = 10; request.LimiteBMFInstrumento = info; response = new ServicoLimiteBMF().AtualizarLimiteInstrumentoBMF(request); }
public InserirLimiteBMFInstrumentoResponse AtualizarLimiteInstrumentoBMF(InserirLimiteBMFInstrumentoRequest InserirLimiteBMFInstrumentoRequest) { InserirLimiteBMFInstrumentoResponse response = new InserirLimiteBMFInstrumentoResponse(); try { PersistenciaOrdens PersistenciaOrdens = new PersistenciaOrdens(); response = PersistenciaOrdens.AtualizarLimiteInstrumentoBMF(InserirLimiteBMFInstrumentoRequest); } catch (Exception ex) { response.bSucesso = false; } return(response); }
private void InserirLimiteInstrumentoCliente() { #region Instrumento ClienteParametroBMFInstrumentoInfo ContratoInstrumento = new ClienteParametroBMFInstrumentoInfo(); InserirLimiteBMFInstrumentoRequest RequestInstrumento = new InserirLimiteBMFInstrumentoRequest(); InserirLimiteBMFInstrumentoResponse ResponseInstrumento = new InserirLimiteBMFInstrumentoResponse(); ContratoInstrumento.IdClienteParametroBMF = 16; ContratoInstrumento.ContratoBase = "IND"; ContratoInstrumento.Instrumento = "INDZ13"; ContratoInstrumento.QtDisponivel = 5; ContratoInstrumento.QtTotalInstrumento = 5; ContratoInstrumento.QtTotalContratoPai = 50; RequestInstrumento.LimiteBMFInstrumento = ContratoInstrumento; ResponseInstrumento = new ServicoLimiteBMF().AtualizarLimiteInstrumentoBMF(RequestInstrumento); #endregion }