CodeRuleFormatEntity.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using LeaRun.Application.Code;
  2. using System;
  3. namespace LeaRun.Application.Entity.SystemManage
  4. {
  5. /// <summary>
  6. /// 版 本 6.1
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.12.21 16:19
  10. /// 描 述:编号规则格式
  11. /// </summary>
  12. public class CodeRuleFormatEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 编号规则格式主键
  17. /// </summary>
  18. public string RuleFormatId { get; set; }
  19. /// <summary>
  20. /// 编码规则主键
  21. /// </summary>
  22. public string RuleId { get; set; }
  23. /// <summary>
  24. /// 项目类型
  25. /// </summary>
  26. public int? ItemType { get; set; }
  27. /// <summary>
  28. /// 项目类型名称
  29. /// </summary>
  30. public string ItemTypeName { get; set; }
  31. /// <summary>
  32. /// 格式化字符串
  33. /// </summary>
  34. public string FormatStr { get; set; }
  35. /// <summary>
  36. /// 步长
  37. /// </summary>
  38. public int? StepValue { get; set; }
  39. /// <summary>
  40. /// 初始值
  41. /// </summary>
  42. public int? InitValue { get; set; }
  43. /// <summary>
  44. /// 排序码
  45. /// </summary>
  46. public int? SortCode { get; set; }
  47. /// <summary>
  48. /// 删除标记
  49. /// </summary>
  50. public int? DeleteMark { get; set; }
  51. /// <summary>
  52. /// 有效标志
  53. /// </summary>
  54. public int? EnabledMark { get; set; }
  55. /// <summary>
  56. /// 备注
  57. /// </summary>
  58. public string Description { get; set; }
  59. #endregion
  60. #region 扩展操作
  61. /// <summary>
  62. /// 新增调用
  63. /// </summary>
  64. public override void Create()
  65. {
  66. this.RuleFormatId = Guid.NewGuid().ToString();
  67. this.DeleteMark = 0;
  68. this.EnabledMark = 1;
  69. }
  70. /// <summary>
  71. /// 编辑调用
  72. /// </summary>
  73. /// <param name="keyValue"></param>
  74. public override void Modify(string keyValue)
  75. {
  76. }
  77. #endregion
  78. }
  79. }