private void btCancelar_Click(object sender, EventArgs e) { _Servico = Ativador.Get <IServicoOrdemStopStart>(); if (_Servico != null) { CancelarStartStopOrdensRequest lRequestCancelamento = new CancelarStartStopOrdensRequest(); lRequestCancelamento.IdStopStart = int.Parse(txtIdStopStart.Text); lRequestCancelamento.IdStopStartStatus = (int)OrdemStopStatus.CancelamentoEnviadoMDS; lRequestCancelamento.Instrument = txtInstrumento.Text; CancelarStartStopOrdensResponse lRespostaCancelamento = _Servico.CancelaOrdemStopStart(lRequestCancelamento); } }
private void btCancelar_Click(object sender, EventArgs e) //--> Cancelar Ordem StartStop { try { _Servico = Ativador.Get <IServicoOrdemStopStart>(); if (_Servico != null) { CancelarStartStopOrdensRequest lRequestCancelamento = new CancelarStartStopOrdensRequest(); lRequestCancelamento.IdStopStart = int.Parse(txtIdStopStart.Text); lRequestCancelamento.IdStopStartStatus = (int)OrdemStopStatus.CancelamentoEnviadoMDS; lRequestCancelamento.Instrument = txtInstrumento.Text; CancelarStartStopOrdensResponse lRespostaCancelamento = _Servico.CancelaOrdemStopStart(lRequestCancelamento); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }