Exemplo n.º 1
0
 public BusinessRecord(string name, int capacity)
     : base(name, null)
 {
     this._items      = new List <BusinessData>(capacity);
     _isDeleted       = BusinessItemFactory.Create("IsDeleted", false, PermissionFeature.Sound, this);
     this.IsAttribute = false;
 }
Exemplo n.º 2
0
 private void Initialize(Guid id, Guid accountId, Guid currencyId, decimal value, BillType type, BillOwnerType ownerType, DateTime updateTime)
 {
     _id         = this.CreateBusinessItem("ID", id, PermissionFeature.Key);
     _accountId  = this.CreateBusinessItem("AccountID", accountId);
     _value      = this.CreateBusinessItem("Value", value, PermissionFeature.Sound);
     _type       = this.CreateBusinessItem("Type", type);
     _ownerType  = this.CreateBusinessItem("OwnerType", ownerType);
     _updateTime = this.CreateBusinessItem("UpdateTime", updateTime, PermissionFeature.Sound);
     _currencyId = this.CreateBusinessItem("CurrencyID", currencyId, PermissionFeature.ReadOnly);
 }
Exemplo n.º 3
0
 private void Initialize(DateTime?valueTime, bool isValued)
 {
     _valueTime = BusinessItemFactory.Create("ValueTime", valueTime, PermissionFeature.Sound, this);
     _isValued  = BusinessItemFactory.Create("IsValued", isValued, PermissionFeature.Sound, this);
 }