internal void Update(CommonTransaction transaction)
 {
     this.Id = transaction.Id;
     this.BeginTime = transaction.BeginTime;
     this.Code = transaction.Code;
     this.ContractSize = transaction.ContractSize;
     this.EndTime = transaction.EndTime;
     this.ExecuteTime = transaction.ExecuteTime;
     this.ExpireType = transaction.ExpireType;
     this.OrderType = transaction.OrderType;
     this.Phase = transaction.Phase;
     this.SubmitorId = transaction.SubmitorId;
     this.SubmitTime = transaction.SubmitTime;
     this.Type = transaction.Type;
     this.SubType = transaction.SubType;
     this.AssigningOrderId = transaction.AssigningOrderId;
     this.InstrumentCategory = transaction.InstrumentCategory == null ? InstrumentCategory.Forex : transaction.InstrumentCategory.Value;
 }
 internal void Initialize(CommonOrder commonOrder)
 {
     this.Id = commonOrder.TransactionId;
      this.BeginTime = commonOrder.BeginTime;
      this.Code = commonOrder.Code;
      this.ContractSize = commonOrder.ContractSize;
      this.EndTime = commonOrder.EndTime;
      this.ExecuteTime = commonOrder.ExecuteTime;
      this.ExpireType = commonOrder.ExpireType;
      this.OrderType = commonOrder.OrderType;
      this.Phase = commonOrder.Phase;
      this.SubmitorId = commonOrder.SubmitorID;
      this.SubmitTime = commonOrder.SubmitTime;
      this.Type = commonOrder.TransactionType;
      this.SubType = commonOrder.TransactionSubType;
      this.AssigningOrderId = commonOrder.AssigningOrderID;
      this.InstrumentCategory = this.Instrument.Category;
 }