Пример #1
0
 /// <summary>
 /// 设置AccountItem
 /// </summary>
 /// <returns></returns>
 protected virtual bool SetAccountItem()
 {
     InvokeItemLoader("Account");
     if (Account == null)
     {
         return(false);
     }
     AccountItem = new AccountItemEntity
     {
         Amount   = 0 - Amount,
         Account  = Account,
         Data     = this,
         Status   = AccountItemStatusType.Effective,
         SaveType = SaveType.Add
     };
     return(true);
 }
Пример #2
0
 /// <summary>
 /// 设置AccountItem
 /// </summary>
 /// <returns></returns>
 protected virtual bool SetIntegralItem()
 {
     InvokeItemLoader("Account");
     if (Account == null || Amount == 0)
     {
         return(false);
     }
     AccountItem = new AccountItemEntity
     {
         Name     = Title,
         Amount   = Amount,
         Account  = Account,
         Data     = this,
         Remark   = Remark,
         SaveType = SaveType.Add
     };
     return(true);
 }