Exemplo n.º 1
0
 public TransactionServerException(iExchange.Common.TransactionError errorCode, string errorDetail = "")
     : base(string.Format("errorCode= {0}, errorDetails={1}", errorCode, errorDetail))
 {
     this.ErrorCode   = errorCode;
     this.ErrorDetail = errorDetail;
 }
Exemplo n.º 2
0
 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);
             }
         }
     });
 }
Exemplo n.º 3
0
 private void RejectPlaceCallback(Transaction tran,TransactionError transactionError)
 {
     App.MainFrameWindow.Dispatcher.BeginInvoke((Action)delegate()
     {
         if (transactionError == TransactionError.OK)
         {
             this._CommonDialogWin.ShowDialogWin("Reject Place Succeed", "Infromation");
         }
     });
 }
Exemplo n.º 4
0
 //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);
         }
     });
 }