CashBalanceEntity.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. using System;
  2. using LeaRun.Application.Code;
  3. namespace LeaRun.Application.Entity.CustomerManage
  4. {
  5. /// <summary>
  6. /// 版 本
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创 建:佘赐雄
  9. /// 日 期:2016-04-28 16:48
  10. /// 描 述:现金余额
  11. /// </summary>
  12. public class CashBalanceEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 现金余额主键
  17. /// </summary>
  18. /// <returns></returns>
  19. public string CashBalanceId { get; set; }
  20. /// <summary>
  21. /// 对象主键
  22. /// </summary>
  23. /// <returns></returns>
  24. public string ObjectId { get; set; }
  25. /// <summary>
  26. /// ExecutionDate
  27. /// </summary>
  28. /// <returns></returns>
  29. public DateTime? ExecutionDate { get; set; }
  30. /// <summary>
  31. /// CashAccount
  32. /// </summary>
  33. /// <returns></returns>
  34. public string CashAccount { get; set; }
  35. /// <summary>
  36. /// Receivable
  37. /// </summary>
  38. /// <returns></returns>
  39. public decimal? Receivable { get; set; }
  40. /// <summary>
  41. /// Expenses
  42. /// </summary>
  43. /// <returns></returns>
  44. public decimal? Expenses { get; set; }
  45. /// <summary>
  46. /// Balance
  47. /// </summary>
  48. /// <returns></returns>
  49. public decimal? Balance { get; set; }
  50. /// <summary>
  51. /// Abstract
  52. /// </summary>
  53. /// <returns></returns>
  54. public string Abstract { get; set; }
  55. /// <summary>
  56. /// 排序码
  57. /// </summary>
  58. /// <returns></returns>
  59. public int? SortCode { get; set; }
  60. /// <summary>
  61. /// 删除标记
  62. /// </summary>
  63. /// <returns></returns>
  64. public int? DeleteMark { get; set; }
  65. /// <summary>
  66. /// 有效标志
  67. /// </summary>
  68. /// <returns></returns>
  69. public int? EnabledMark { get; set; }
  70. /// <summary>
  71. /// 备注
  72. /// </summary>
  73. /// <returns></returns>
  74. public string Description { get; set; }
  75. /// <summary>
  76. /// 创建日期
  77. /// </summary>
  78. /// <returns></returns>
  79. public DateTime? CreateDate { get; set; }
  80. /// <summary>
  81. /// 创建用户主键
  82. /// </summary>
  83. /// <returns></returns>
  84. public string CreateUserId { get; set; }
  85. /// <summary>
  86. /// 创建用户
  87. /// </summary>
  88. /// <returns></returns>
  89. public string CreateUserName { get; set; }
  90. /// <summary>
  91. /// 修改日期
  92. /// </summary>
  93. /// <returns></returns>
  94. public DateTime? ModifyDate { get; set; }
  95. /// <summary>
  96. /// 修改用户主键
  97. /// </summary>
  98. /// <returns></returns>
  99. public string ModifyUserId { get; set; }
  100. /// <summary>
  101. /// 修改用户
  102. /// </summary>
  103. /// <returns></returns>
  104. public string ModifyUserName { get; set; }
  105. #endregion
  106. #region 扩展操作
  107. /// <summary>
  108. /// 新增调用
  109. /// </summary>
  110. public override void Create()
  111. {
  112. this.CashBalanceId = Guid.NewGuid().ToString();
  113. this.CreateDate = DateTime.Now;
  114. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  115. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  116. this.DeleteMark = 0;
  117. this.EnabledMark = 1;
  118. }
  119. /// <summary>
  120. /// 编辑调用
  121. /// </summary>
  122. /// <param name="keyValue"></param>
  123. public override void Modify(string keyValue)
  124. {
  125. this.CashBalanceId = keyValue;
  126. this.ModifyDate = DateTime.Now;
  127. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  128. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  129. }
  130. #endregion
  131. }
  132. }