예제 #1
0
 private void Parse(TransactionConstructParams constructParams)
 {
     _placedByRiskMonitor       = this.CreateSoundItem(TransactionBusinessItemNames.PlacedByRiskMonitor, constructParams.PlaceByRiskMonitor);
     _freePlacingPreCheck       = this.CreateSoundItem(TransactionBusinessItemNames.FreePlacingPreCheck, constructParams.FreePlacingPreCheck);
     _disableAcceptLmtVariation = this.CreateReadonlyItem("DisableLmtVariation", constructParams.DisableAcceptLmtVariation);
     _id                 = this.CreateItem(TransactionBusinessItemNames.Id, constructParams.Id, PermissionFeature.Key);
     _code               = this.CreateSoundItem(TransactionBusinessItemNames.Code, constructParams.Code);
     _type               = this.CreateSoundItem(TransactionBusinessItemNames.Type, constructParams.Type);
     _accountId          = this.CreateReadonlyItem(TransactionBusinessItemNames.AccountId, _account.Id);
     _instrumentId       = this.CreateReadonlyItem(TransactionBusinessItemNames.InstrumentId, constructParams.InstrumentId);
     _subType            = this.CreateSoundItem(TransactionBusinessItemNames.SubType, constructParams.SubType);
     _phase              = this.CreateSoundItem(TransactionBusinessItemNames.Phase, constructParams.Phase);
     _orderType          = this.CreateReadonlyItem(TransactionBusinessItemNames.OrderType, constructParams.OrderType);
     _contractSize       = this.CreateSoundItem(TransactionBusinessItemNames.ContractSize, constructParams.ConstractSize);
     _beginTime          = this.CreateReadonlyItem(TransactionBusinessItemNames.BeginTime, constructParams.BeginTime);
     _endTime            = this.CreateReadonlyItem(TransactionBusinessItemNames.EndTime, constructParams.EndTime);
     _expireType         = this.CreateReadonlyItem(TransactionBusinessItemNames.ExpireType, constructParams.ExpireType);
     _submitTime         = this.CreateReadonlyItem(TransactionBusinessItemNames.SubmitTime, constructParams.SubmitTime);
     _submitorId         = this.CreateReadonlyItem(TransactionBusinessItemNames.SubmitorId, constructParams.SubmitorId);
     _executeTime        = this.CreateSoundItem(TransactionBusinessItemNames.ExecuteTime, constructParams.ExecuteTime);
     _approverId         = this.CreateSoundItem(TransactionBusinessItemNames.ApproverId, constructParams.ApproveId);
     _sourceOrderId      = this.CreateReadonlyItem(TransactionBusinessItemNames.SourceOrderId, constructParams.SourceOrderId);
     _setPriceTimestamp  = this.CreateSoundItem(TransactionBusinessItemNames.SetPriceTimestamp, constructParams.SetPriceTimestamp);
     _instrumentCategory = this.CreateReadonlyItem(TransactionBusinessItemNames.InstrumentCategory, constructParams.GetInstrumentCategory(_account.Id));
     _placePhase         = this.CreateSoundItem("PlacePhase", PlacePhase.None);
     _placeDetail        = this.CreateSoundItem("PlaceDetail", string.Empty);
     _appType            = this.CreateReadonlyItem("AppType", constructParams.AppType);
     _updateTime         = this.CreateSoundItem("UpdateTime", DateTime.Now);
 }
예제 #2
0
 internal TransactionSettings(Transaction owner, TransactionConstructParams constructParams)
     : base(owner)
 {
     _account = owner.Owner;
     this.Parse(constructParams);
 }