| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- namespace Muchinfo.MTPClient.Data.Model.Account
- {
- public class AccountAmountLog
- {
- #region SQL备注
- // select t.AUTOID,
- // t.OPERATETYPE,
- // t.BALANCE,
- // t.AMOUNT,
- // t.CURRENTBALANCE,
- // t.RELATIONORDERID,
- // t.ACCOUNTID,
- // t.CREATETIME
- // from TAAccountLog t
- //WHERE t.ACCOUNTID = #{accountId}
- #endregion
- /// <summary>
- /// 操作时间
- /// </summary>
- [PropertyDisc("CreateTime")]
- public DateTime OperateTime
- { get; set; }
- /// <summary>
- /// 变动金额
- /// </summary>
- [PropertyDisc("amount")]
- public decimal Amount { get; set; }
- /// <summary>
- /// 变动后余额
- /// </summary>
- [PropertyDisc("currentbalance")]
- public decimal CurrentBalance { get; set; }
- /// <summary>
- /// 资金流水号
- /// </summary>
- [PropertyDisc("AUTOID")]
- public long AmountTicket { get; set; }
- /// <summary>
- /// 关联单号
- /// </summary>
- [PropertyDisc("RelationOrderID")]
- public ulong RelationOrderID { get; set; }
- /// <summary>
- /// 货币
- /// </summary>
- [PropertyDisc("Currency")]
- public string Currency { get; set; }
-
- /// <summary>
- /// yyoo期初余额
- /// </summary>
- [PropertyDisc("balance")]
- public decimal Balance { get; set; }
- /// <summary>
- /// 操作类型
- /// </summary>
- [PropertyDisc("operateType")]
- public eAccountFundCmdOp OperatoType { get; set; }
- /// <summary>
- /// 市场
- /// </summary>
- [PropertyDisc("MarketName")]
- public string MarketName { get; set; }
- /// <summary>
- /// 商品
- /// </summary>
- [PropertyDisc("GoodsName")]
- public string GoodsName { get; set; }
- public string CurrentBalanceDisplay
- {
- get
- {
- return CurrentBalance.ToString("N2");
- }
- }
- public string AmountDisplay
- {
- get
- {
- return Amount.ToString("N2");
- }
- }
- public string BalanceDisplay
- {
- get
- {
- return Balance.ToString("N2");
- }
- }
- public string RelationOrderIDDisplay
- {
- get
- {
- if (RelationOrderID <= 0)
- {
- return "--";
- }
- return RelationOrderID + string.Empty;
- }
- }
- public string DisplayOperateType
- {
- get
- {
- return OperatoType.Discription("operateType");
- }
- }
- #region MTP2.0-资管新字段
- [PropertyDisc("AccountId")]
- public long AccountId { get; set; }
- [PropertyDisc("MarketId")]
- public decimal MarketId { get; set; }
- [PropertyDisc("GoodsId")]
- public decimal GoodsId { get; set; }
- [PropertyDisc("GoodsCode")]
- public string GoodsCode { get; set; }
- [PropertyDisc("CurrencyId")]
- public long CurrencyId { get; set; }
- [PropertyDisc("AmountAdjustType")]
- public int AmountAdjustType { get; set; }
- [PropertyDisc("OperateTypeName")]
- public string OperateTypeName { get; set; }
- [PropertyDisc("MoneyTicket")]
- public long MoneyTicket { get; set; }
- [PropertyDisc("AccDate")]
- public string AccDate { get; set; }
- #endregion
- public string OperateTimeDisplay
- {
- get
- {
- return OperateTime.ToString("yyyy-MM-dd HH:mm:ss");
- }
- }
- /// <summary>
- /// 序号
- /// </summary>
- /// <value>The index.</value>
- public int Index { get; set; }
- /// <summary>
- /// Gets the goods display.
- /// </summary>
- /// <value>The goods display.</value>
- public string GoodsDisplay
- {
- get
- {
- if (string.IsNullOrWhiteSpace(GoodsCode)) return "-";
- return GoodsCode + "/" + GoodsName;
- }
- }
- }
- }
|