public void ProcessExecuteMessage(ExecuteMessage executeMessage)
        {
            foreach (CommonTransaction commonTransaction in executeMessage.Transactions)
            {
                if (commonTransaction.Error != null && commonTransaction.Error.Value != TransactionError.OK)
                {
                    //...
                }
                if(this._Transactions.ContainsKey(commonTransaction.Id) && this._Transactions[commonTransaction.Id].Phase == Phase.Executed)
                {
                    continue;
                }
                else
                {
                    this.Process(commonTransaction);
                }
            }
            //Sound.PlayExecute()

            foreach (CommonOrder commonOrder in executeMessage.Orders)
            {
                commonOrder.ExchangeCode = executeMessage.ExchangeCode;
                this.Process(commonOrder, false);
            }

            foreach (CommonTransaction commonTransaction in executeMessage.Transactions)
            {
                Transaction tran = this._Transactions[commonTransaction.Id];
                this.TranPhaseManager.UpdateTransaction(tran);
            }
        }
        public void ProcessExecuteMessage(ExecuteMessage executeMessage)
        {
            try
            {
                string exchangeCode = executeMessage.ExchangeCode;
                bool oDisablePopup = this._SettingsParameterManager.DealingOrderParameter.DisablePopup;
                foreach (CommonTransaction commonTransaction in executeMessage.Transactions)
                {
                    if (commonTransaction.Error != null && commonTransaction.Error.Value != TransactionError.OK)
                    {
                        this.PlaySound(SoundOption.DQTradeFailed);
                    }
                    else if (this._Transactions.ContainsKey(commonTransaction.Id)
                        && this._Transactions[commonTransaction.Id].Phase == Phase.Executed)
                    {
                        continue;
                    }
                    else if (this._Transactions.ContainsKey(commonTransaction.Id))
                    {
                        Transaction tran = this._Transactions[commonTransaction.Id];
                        tran.ExecuteTime = commonTransaction.ExecuteTime;
                        tran.Phase = iExchange.Common.OrderPhase.Executed;
                    }
                    else
                    {
                        this.ProcessTransaction(executeMessage.ExchangeCode, commonTransaction);
                    }
                }

                this.PlaySound(SoundOption.DQTradeSucceed);
                foreach (CommonOrder commonOrder in executeMessage.Orders)
                {
                    commonOrder.ExchangeCode = executeMessage.ExchangeCode;
                    this.Process(commonOrder, false);
                }

                //Change Order status
                foreach (CommonTransaction commonTransaction in executeMessage.Transactions)
                {
                    Transaction tran = this._Transactions[commonTransaction.Id];
                    this.TranPhaseManager.UpdateTransaction(tran);

                    this.TranPhaseManager.AddExecutedOrder(tran);
                    this.TranPhaseManager.AddOrderToGroupNetPosition(tran);
                }

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }