public DisplayForAssetViewModel(Core.Models.AssetTransaction dtoAssetTransaction,
                                 string clearDate, Core.Models.TransactionCategory dtoTransactionCategory)
 {
     Id        = dtoAssetTransaction.Id;
     DueDate   = dtoAssetTransaction.DueDate.ToString("MM/dd/yyyy");
     ClearDate = clearDate;
     Category  = dtoTransactionCategory.Name;
     Amount    = dtoAssetTransaction.Amount;
     Note      = dtoAssetTransaction.Note;
 }
Esempio n. 2
0
 public AccountTransaction(Core.Models.AssetTransaction dbAssetTransaction,
                           Core.Models.Asset dbAsset,
                           Core.Models.AssetType dbAssetType,
                           Core.Models.TransactionType dbTransactionType,
                           Core.Models.TransactionCategory dbTransactionCategory,
                           string assetNameFormatted)
 {
     AssetTransactionId = dbAssetTransaction.Id;
     Amount             = dbAssetTransaction.Amount;
     CheckNumber        = dbAssetTransaction.CheckNumber;
     ClearDate          = dbAssetTransaction.ClearDate;
     DueDate            = dbAssetTransaction.DueDate;
     Note                    = dbAssetTransaction.Note;
     AssetId                 = dbAsset.Id;
     AssetName               = assetNameFormatted;
     AssetTypeId             = dbAssetType.Id;
     AssetTypeName           = dbAssetType.Name;
     TransactionTypeName     = dbTransactionType.Name;
     TransactionCategoryName = dbTransactionCategory.Name;
 }
Esempio n. 3
0
 public EditViewModel(Core.Models.TransactionCategory dtoTransactionCategory)
 {
     Id   = dtoTransactionCategory.Id;
     Name = dtoTransactionCategory.Name;
 }