MoSequence.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. using ProjectBase.Data.BaseDAL;
  2. using ProjectBase.Util;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace SIMDP.Model
  9. {
  10. /// <summary>
  11. /// 自增序列
  12. /// </summary>
  13. [Serializable]
  14. public class MoSequence : BaseEntity
  15. {
  16. public MoSequence()
  17. {
  18. this.CurrentLoginUserId = SysEnvironment.CurrentLoginID;
  19. }
  20. #region Field Members
  21. private long m_SequenceId = 0; // Id
  22. private string m_SequenceName = ""; // 序列名称
  23. private long m_SequenceCurrent = 0; // 当前值
  24. private long m_SequenceMax = 0; // 序列最大值
  25. private int m_AddValue =0;//增加最大值
  26. #endregion
  27. #region Property Members
  28. /// <summary>
  29. /// ID
  30. /// </summary>
  31. public virtual long SequenceId
  32. {
  33. get
  34. {
  35. return this.m_SequenceId;
  36. }
  37. set
  38. {
  39. this.m_SequenceId = value;
  40. }
  41. }
  42. /// <summary>
  43. /// 序列名称
  44. /// </summary>
  45. public virtual string SequenceName
  46. {
  47. get
  48. {
  49. return this.m_SequenceName;
  50. }
  51. set
  52. {
  53. this.m_SequenceName = value;
  54. }
  55. }
  56. /// <summary>
  57. /// 当前值
  58. /// </summary>
  59. public virtual long SequenceCurrent
  60. {
  61. get
  62. {
  63. return this.m_SequenceCurrent;
  64. }
  65. set
  66. {
  67. this.m_SequenceCurrent = value;
  68. }
  69. }
  70. /// <summary>
  71. /// 序列最大值
  72. /// </summary>
  73. public virtual long SequenceMax
  74. {
  75. get
  76. {
  77. return this.m_SequenceMax;
  78. }
  79. set
  80. {
  81. this.m_SequenceMax = value;
  82. }
  83. }
  84. /// <summary>
  85. /// 序列最大值
  86. /// </summary>
  87. public virtual int AddValue
  88. {
  89. get
  90. {
  91. return this.m_AddValue;
  92. }
  93. set
  94. {
  95. this.m_AddValue = value;
  96. }
  97. }
  98. #endregion
  99. }
  100. }