AccountAmountLog.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Muchinfo.MTPClient.Data.Enums;
  6. using Muchinfo.MTPClient.Data.Helper;
  7. namespace Muchinfo.MTPClient.Data.Model.Account
  8. {
  9. public class AccountAmountLog
  10. {
  11. #region SQL备注
  12. // select t.AUTOID,
  13. // t.OPERATETYPE,
  14. // t.BALANCE,
  15. // t.AMOUNT,
  16. // t.CURRENTBALANCE,
  17. // t.RELATIONORDERID,
  18. // t.ACCOUNTID,
  19. // t.CREATETIME
  20. // from TAAccountLog t
  21. //WHERE t.ACCOUNTID = #{accountId}
  22. #endregion
  23. /// <summary>
  24. /// 操作时间
  25. /// </summary>
  26. [PropertyDisc("CreateTime")]
  27. public DateTime OperateTime
  28. { get; set; }
  29. /// <summary>
  30. /// 变动金额
  31. /// </summary>
  32. [PropertyDisc("amount")]
  33. public decimal Amount { get; set; }
  34. /// <summary>
  35. /// 变动后余额
  36. /// </summary>
  37. [PropertyDisc("currentbalance")]
  38. public decimal CurrentBalance { get; set; }
  39. /// <summary>
  40. /// 资金流水号
  41. /// </summary>
  42. [PropertyDisc("AUTOID")]
  43. public long AmountTicket { get; set; }
  44. /// <summary>
  45. /// 关联单号
  46. /// </summary>
  47. [PropertyDisc("RelationOrderID")]
  48. public ulong RelationOrderID { get; set; }
  49. /// <summary>
  50. /// 货币
  51. /// </summary>
  52. [PropertyDisc("Currency")]
  53. public string Currency { get; set; }
  54. /// <summary>
  55. /// yyoo期初余额
  56. /// </summary>
  57. [PropertyDisc("balance")]
  58. public decimal Balance { get; set; }
  59. /// <summary>
  60. /// 操作类型
  61. /// </summary>
  62. [PropertyDisc("operateType")]
  63. public eAccountFundCmdOp OperatoType { get; set; }
  64. /// <summary>
  65. /// 市场
  66. /// </summary>
  67. [PropertyDisc("MarketName")]
  68. public string MarketName { get; set; }
  69. /// <summary>
  70. /// 商品
  71. /// </summary>
  72. [PropertyDisc("GoodsName")]
  73. public string GoodsName { get; set; }
  74. public string CurrentBalanceDisplay
  75. {
  76. get
  77. {
  78. return CurrentBalance.ToString("N2");
  79. }
  80. }
  81. public string AmountDisplay
  82. {
  83. get
  84. {
  85. return Amount.ToString("N2");
  86. }
  87. }
  88. public string BalanceDisplay
  89. {
  90. get
  91. {
  92. return Balance.ToString("N2");
  93. }
  94. }
  95. public string RelationOrderIDDisplay
  96. {
  97. get
  98. {
  99. if (RelationOrderID <= 0)
  100. {
  101. return "--";
  102. }
  103. return RelationOrderID + string.Empty;
  104. }
  105. }
  106. public string DisplayOperateType
  107. {
  108. get
  109. {
  110. return OperatoType.Discription("operateType");
  111. }
  112. }
  113. #region MTP2.0-资管新字段
  114. [PropertyDisc("AccountId")]
  115. public long AccountId { get; set; }
  116. [PropertyDisc("MarketId")]
  117. public decimal MarketId { get; set; }
  118. [PropertyDisc("GoodsId")]
  119. public decimal GoodsId { get; set; }
  120. [PropertyDisc("GoodsCode")]
  121. public string GoodsCode { get; set; }
  122. [PropertyDisc("CurrencyId")]
  123. public long CurrencyId { get; set; }
  124. [PropertyDisc("AmountAdjustType")]
  125. public int AmountAdjustType { get; set; }
  126. [PropertyDisc("OperateTypeName")]
  127. public string OperateTypeName { get; set; }
  128. [PropertyDisc("MoneyTicket")]
  129. public long MoneyTicket { get; set; }
  130. [PropertyDisc("AccDate")]
  131. public string AccDate { get; set; }
  132. #endregion
  133. public string OperateTimeDisplay
  134. {
  135. get
  136. {
  137. return OperateTime.ToString("yyyy-MM-dd HH:mm:ss");
  138. }
  139. }
  140. /// <summary>
  141. /// 序号
  142. /// </summary>
  143. /// <value>The index.</value>
  144. public int Index { get; set; }
  145. /// <summary>
  146. /// Gets the goods display.
  147. /// </summary>
  148. /// <value>The goods display.</value>
  149. public string GoodsDisplay
  150. {
  151. get
  152. {
  153. if (string.IsNullOrWhiteSpace(GoodsCode)) return "-";
  154. return GoodsCode + "/" + GoodsName;
  155. }
  156. }
  157. }
  158. }