private void btnExportReceival_Click(object sender, EventArgs e) { int _numReceival; MessageBox.Show("This functionality has been disabled.", "SIMPLISTICA", MessageBoxButtons.OK, MessageBoxIcon.Error); return; if (txtReceivalCode.Text == "") { MessageBox.Show("Wrong receival code.", "SIMPLISTICA", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } using (var _sp = new SP(Values.gDatos, "pHSAExportReceival")) { _sp.AddParameterValue("@RecCode", txtReceivalCode.Text); _sp.AddParameterValue("@cod3", Values.COD3); try { _sp.Execute(); } catch (Exception ex) { CTWin.MsgError(ex.Message); return; } if (_sp.LastMsg.Substring(0, 2) != "OK") { CTWin.MsgError(_sp.LastMsg); return; } _numReceival = _sp.LastMsg.Substring(4).ToInt(); } CTLM.Refresh(); MessageBox.Show(string.Format("HSA receival exported to LOGISTICA receival {1}.", _numReceival), "SIMPLISTICA", MessageBoxButtons.OK, MessageBoxIcon.Information); }