Beispiel #1
0
        internal Bill(IDBRow dr)
            : base("Bill", ItemCapacityFactor)
        {
            Guid          id         = (Guid)dr["ID"];
            Guid          accountId  = (Guid)dr["AccountID"];
            decimal       value      = (decimal)dr["Value"];
            BillType      type       = (BillType)dr.GetColumn <int>("Type");
            BillOwnerType ownerType  = (BillOwnerType)dr.GetColumn <int>("OwnerType");
            DateTime      updateTime = dr.GetColumn <DateTime>("UpdateTime");
            Guid          currencyId = dr.GetColumn <Guid>("CurrencyID");

            this.Initialize(id, accountId, currencyId, value, type, ownerType, updateTime);
        }
Beispiel #2
0
 internal Bill(Guid accountId, Guid currencyId, decimal value, BillType type, BillOwnerType ownerType, DateTime updateTime)
     : this(Guid.NewGuid(), accountId, currencyId, value, type, ownerType, updateTime)
 {
 }
Beispiel #3
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);
 }
Beispiel #4
0
 internal PLBill(Guid accountId, Guid currencyId, decimal value, BillType type, BillOwnerType ownerType, DateTime?valueTime, bool isValued, DateTime updateTime)
     : base(accountId, currencyId, value, type, ownerType, updateTime)
 {
     this.Initialize(valueTime, isValued);
 }
Beispiel #5
0
 private Bill(Guid id, Guid accountId, Guid currencyId, decimal value, BillType type, BillOwnerType ownerType, DateTime updateTime)
     : base("Bill", ItemCapacityFactor)
 {
     this.Initialize(id, accountId, currencyId, value, type, ownerType, updateTime);
 }