public TransactionServerException(iExchange.Common.TransactionError errorCode, string errorDetail = "") : base(string.Format("errorCode= {0}, errorDetails={1}", errorCode, errorDetail)) { this.ErrorCode = errorCode; this.ErrorDetail = errorDetail; }
private void CancelTransactionCallback(Transaction tran,TransactionError transactionError) { App.MainFrameWindow.Dispatcher.BeginInvoke((Action)delegate() { if (transactionError == TransactionError.OK) { foreach (Order order in tran.Orders) { if (order.Status == OrderStatus.Deleting) { order.ChangeStatus(OrderStatus.Canceled); } } this.RemoveTransaction(tran); } else { bool oDisablePopup = true; //配置参数 if (oDisablePopup) { string sMsg = MessageHelper.Instance.GetMessageForOrder(transactionError.ToString()); // this._Message.GetMessageForOrder("DealerCanceled"); this._CommonDialogWin.ShowDialogWin(sMsg, "Alert", 300, 200); } } }); }
private void RejectPlaceCallback(Transaction tran,TransactionError transactionError) { App.MainFrameWindow.Dispatcher.BeginInvoke((Action)delegate() { if (transactionError == TransactionError.OK) { this._CommonDialogWin.ShowDialogWin("Reject Place Succeed", "Infromation"); } }); }
//Call Back Event private void AcceptPlaceCallback(Transaction tran, TransactionError transactionError) { App.MainFrameWindow.Dispatcher.BeginInvoke((Action)delegate() { if (transactionError == TransactionError.OK) { tran.Phase = iExchange.Common.OrderPhase.Placed; TranPhaseManager.UpdateTransaction(tran); } }); }