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 /// /// 操作时间 /// [PropertyDisc("CreateTime")] public DateTime OperateTime { get; set; } /// /// 变动金额 /// [PropertyDisc("amount")] public decimal Amount { get; set; } /// /// 变动后余额 /// [PropertyDisc("currentbalance")] public decimal CurrentBalance { get; set; } /// /// 资金流水号 /// [PropertyDisc("AUTOID")] public long AmountTicket { get; set; } /// /// 关联单号 /// [PropertyDisc("RelationOrderID")] public ulong RelationOrderID { get; set; } /// /// 货币 /// [PropertyDisc("Currency")] public string Currency { get; set; } /// /// yyoo期初余额 /// [PropertyDisc("balance")] public decimal Balance { get; set; } /// /// 操作类型 /// [PropertyDisc("operateType")] public eAccountFundCmdOp OperatoType { get; set; } /// /// 市场 /// [PropertyDisc("MarketName")] public string MarketName { get; set; } /// /// 商品 /// [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"); } } /// /// 序号 /// /// The index. public int Index { get; set; } /// /// Gets the goods display. /// /// The goods display. public string GoodsDisplay { get { if (string.IsNullOrWhiteSpace(GoodsCode)) return "-"; return GoodsCode + "/" + GoodsName; } } } }