Exemple #1
0
 internal CloseTradingBill(Guid id, Guid accountId, Guid currencyId, decimal value, TradingBillType type, DateTime updateTime, Guid closeOrderId, Guid openOrderId)
     : base(id, accountId, currencyId, value, type, updateTime)
 {
     _closeOrderId = BusinessItemFactory.Create("CloseOrderId", closeOrderId, PermissionFeature.ReadOnly, this);
     _openOrderId  = BusinessItemFactory.Create("OpenOrderId", openOrderId, PermissionFeature.ReadOnly, this);
 }
Exemple #2
0
 internal TradingBill(Guid id, Guid accountId, Guid currencyId, decimal value, TradingBillType type, DateTime updateTime)
     : base("TradingBill", 6)
 {
     _id         = BusinessItemFactory.Create("ID", id, PermissionFeature.Key, this);
     _accountId  = BusinessItemFactory.Create("AccountId", accountId, PermissionFeature.ReadOnly, this);
     _currencyId = BusinessItemFactory.Create("CurrencyId", currencyId, PermissionFeature.ReadOnly, this);
     _value      = BusinessItemFactory.Create("Value", value, PermissionFeature.Sound, this);
     _updateTime = BusinessItemFactory.Create("updateTime", updateTime, PermissionFeature.Sound, this);
     _type       = BusinessItemFactory.Create("Type", type, PermissionFeature.ReadOnly, this);
 }