FdcFunction.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WebAPIBase.NetCore.BusinessCore
  7. {
  8. public class FdcFunction
  9. {
  10. private string _FunctionStructureCode;
  11. private string _FunctionStructureName;
  12. private string _ParentCode;
  13. private int _Deep;
  14. private int _IsSystemClass;
  15. private int rightLimitPoint;
  16. public bool UnitRelated;
  17. public bool SystemGroupRelated;
  18. public string FunctionStructureCode
  19. {
  20. get
  21. {
  22. return _FunctionStructureCode;
  23. }
  24. set
  25. {
  26. _FunctionStructureCode = value;
  27. }
  28. }
  29. public string FunctionStructureName
  30. {
  31. get
  32. {
  33. return _FunctionStructureName;
  34. }
  35. set
  36. {
  37. _FunctionStructureName = value;
  38. }
  39. }
  40. public string ParentCode
  41. {
  42. get
  43. {
  44. return _ParentCode;
  45. }
  46. set
  47. {
  48. _ParentCode = value;
  49. }
  50. }
  51. public int Deep
  52. {
  53. get
  54. {
  55. return _Deep;
  56. }
  57. set
  58. {
  59. _Deep = value;
  60. }
  61. }
  62. public int IsSystemClass
  63. {
  64. get
  65. {
  66. return _IsSystemClass;
  67. }
  68. set
  69. {
  70. _IsSystemClass = value;
  71. }
  72. }
  73. public int RightLimitPoint
  74. {
  75. get
  76. {
  77. return rightLimitPoint;
  78. }
  79. set
  80. {
  81. rightLimitPoint = value;
  82. switch (rightLimitPoint)
  83. {
  84. case 0:
  85. UnitRelated = false;
  86. SystemGroupRelated = false;
  87. break;
  88. case 1:
  89. UnitRelated = true;
  90. SystemGroupRelated = false;
  91. break;
  92. case 2:
  93. UnitRelated = false;
  94. SystemGroupRelated = true;
  95. break;
  96. case 3:
  97. UnitRelated = true;
  98. SystemGroupRelated = true;
  99. break;
  100. default:
  101. UnitRelated = true;
  102. SystemGroupRelated = true;
  103. break;
  104. }
  105. }
  106. }
  107. }
  108. }