暫無描述

classify.cs 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace XYFDRQ.Model
  5. {
  6. [Serializable]
  7. public class classify
  8. {
  9. public classify()
  10. { }
  11. #region Model
  12. private int _id;
  13. private string _name;
  14. private string _code;//编号,包含所有上级id,如果是顶级则唯一存在值
  15. private int _sort;//排序
  16. private int _state;//0添加或者修改,id存在则修改,不存在则添加,1删除
  17. private string _parent;//父类id
  18. private bool _haschild;//是否包含子知识项
  19. public bool haschild
  20. {
  21. get { return _haschild; }
  22. set { _haschild = value; }
  23. }
  24. public string name
  25. {
  26. get { return _name; }
  27. set { _name = value; }
  28. }
  29. public string parent
  30. {
  31. get { return _parent; }
  32. set { _parent = value; }
  33. }
  34. public int id
  35. {
  36. set { _id = value; }
  37. get { return _id; }
  38. }
  39. public string code
  40. {
  41. set { _code = value; }
  42. get { return _code; }
  43. }
  44. public int sort
  45. {
  46. set { _sort = value; }
  47. get { return _sort; }
  48. }
  49. public int state
  50. {
  51. set { _state = value; }
  52. get { return _state; }
  53. }
  54. #endregion Model
  55. }
  56. }