BaseCodeModel.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. namespace PMS.EntityModels.BaseCode
  2. {
  3. using QWPlatform.DataIntface.Database;
  4. using QWPlatform.Models;
  5. /// <summary>
  6. /// 测试实体类
  7. /// </summary>
  8. public class BaseCodeModel : DataModelBase
  9. {
  10. //默认不带数据工厂构造
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="BaseCodeModel"/> class.
  13. /// </summary>
  14. public BaseCodeModel()
  15. {
  16. }
  17. //带有数据工厂的实例化,可以直接操作数据
  18. /// <summary>
  19. /// Initializes a new instance of the <see cref="BaseCodeModel"/> class.
  20. /// </summary>
  21. /// <param name="factory">The factory<see cref="DataFactory"/></param>
  22. public BaseCodeModel(DataFactory factory)
  23. : base(factory)
  24. {
  25. }
  26. /// <summary>
  27. /// Gets or sets the ID
  28. /// </summary>
  29. [FieldBase("ID", "", "", true, false, "", 36, 0, "VARCHAR2")]
  30. public string ID { get; set; }
  31. /// <summary>
  32. /// Gets or sets the SJID
  33. /// </summary>
  34. [FieldBase("上级ID", "", "", false, false, "", 36, 0, "VARCHAR2")]
  35. public string SJID { get; set; }
  36. /// <summary>
  37. /// Gets or sets the FLID
  38. /// </summary>
  39. [FieldBase("分类ID", "", "", false, false, "", 36, 0, "VARCHAR2")]
  40. public string FLID { get; set; }
  41. /// <summary>
  42. /// Gets or sets the DM
  43. /// </summary>
  44. [FieldBase("代码", "", "", false, false, "", 16, 0, "VARCHAR2")]
  45. public string DM { get; set; }
  46. /// <summary>
  47. /// Gets or sets the XSM
  48. /// </summary>
  49. [FieldBase("显示名", "", "", false, false, "", 50, 0, "VARCHAR2")]
  50. public string XSM { get; set; }
  51. /// <summary>
  52. /// Gets or sets the SFMR
  53. /// </summary>
  54. [FieldBase("是否默认", "(1、是 0、否)", "", false, false, "", 1, 0, "NUMBER")]
  55. public int? SFMR { get; set; }
  56. /// <summary>
  57. /// Gets or sets the QY
  58. /// </summary>
  59. [FieldBase("启用", "(1、是 0、否)", "", false, false, "", 1, 0, "NUMBER")]
  60. public int? QY { get; set; }
  61. /// <summary>
  62. /// Gets or sets the KZ
  63. /// </summary>
  64. [FieldBase("扩展", "", "", false, false, "", 20, 0, "VARCHAR2")]
  65. public string KZ { get; set; }
  66. /// <summary>
  67. /// Gets or sets the SM
  68. /// </summary>
  69. [FieldBase("说明", "", "", false, false, "", 200, 0, "VARCHAR2")]
  70. public string SM { get; set; }
  71. }
  72. }