Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

111 řádky
3.9 KiB

  1. using Learun.Util;
  2. using System.Collections.Generic;
  3. namespace Learun.Application.Organization
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  7. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  8. /// 创建人:陈彬彬
  9. /// 日 期:2017.04.17
  10. /// 描 述:部门管理
  11. /// </summary>
  12. public interface DepartmentIBLL
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 获取部门列表信息(根据公司Id)
  17. /// </summary>
  18. /// <param name="companyId">公司Id</param>
  19. /// <returns></returns>
  20. List<DepartmentEntity> GetList(string companyId);
  21. /// <summary>
  22. /// 获取部门列表信息(根据公司Id)
  23. /// </summary>
  24. /// <param name="companyId">公司Id</param>
  25. /// <param name="keyWord">查询关键字</param>
  26. /// <returns></returns>
  27. List<DepartmentEntity> GetList(string companyId, string keyWord);
  28. /// <summary>
  29. /// 获取部门数据实体
  30. /// </summary>
  31. /// <param name="keyValue">主键</param>
  32. /// <returns></returns>
  33. DepartmentEntity GetEntity(string keyValue);
  34. string GetDepartmentList(string listId);
  35. /// <summary>
  36. /// 获取部门数据实体
  37. /// </summary>
  38. /// <param name="code">部门编号</param>
  39. /// <returns></returns>
  40. DepartmentEntity GetEntityByCode(string code);
  41. /// <summary>
  42. /// 获取部门数据实体
  43. /// </summary>
  44. /// <param name="companyId">公司主键</param>
  45. /// <param name="departmentId">部门主键</param>
  46. /// <returns></returns>
  47. DepartmentEntity GetEntity(string companyId, string departmentId);
  48. /// <summary>
  49. /// 获取树形数据
  50. /// </summary>
  51. /// <param name="companyId">公司id</param>
  52. /// <param name="parentId">父级id</param>
  53. /// <returns></returns>
  54. List<TreeModel> GetTree(string companyId, string parentId);
  55. /// <summary>
  56. /// 获取树形数据
  57. /// </summary>
  58. /// <param name="companyId">公司id</param>
  59. /// <param name="parentId">父级id</param>
  60. /// <returns></returns>
  61. List<TreeModel> GetTree(List<CompanyEntity> companylist);
  62. /// <summary>
  63. /// 获取树形数据无复选框
  64. /// </summary>
  65. /// <param name="companyId">公司id</param>
  66. /// <param name="parentId">父级id</param>
  67. /// <returns></returns>
  68. List<TreeModel> GetTreeNoCheck(string companyId, string parentId);
  69. /// <summary>
  70. /// 获取树形数据无复选框
  71. /// </summary>
  72. /// <param name="companyId">公司id</param>
  73. /// <param name="parentId">父级id</param>
  74. /// <returns></returns>
  75. List<TreeModel> GetTreeNoCheck(List<CompanyEntity> companylist);
  76. /// <summary>
  77. /// 获取部门本身和子部门的id
  78. /// </summary>
  79. /// <param name="parentId">父级ID</param>
  80. /// <returns></returns>
  81. List<string> GetSubNodes(string companyId, string parentId);
  82. /// <summary>
  83. /// 获取部门映射数据
  84. /// </summary>
  85. /// <returns></returns>
  86. Dictionary<string, DepartmentModel> GetModelMap();
  87. bool GetAny();
  88. #endregion
  89. #region 提交数据
  90. /// <summary>
  91. /// 虚拟删除部门信息
  92. /// </summary>
  93. /// <param name="keyValue">主键</param>
  94. void VirtualDelete(string keyValue);
  95. /// <summary>
  96. /// 保存部门信息(新增、修改)
  97. /// </summary>
  98. /// <param name="keyValue">主键值</param>
  99. /// <param name="departmentEntity">部门实体</param>
  100. /// <returns></returns>
  101. void SaveEntity(string keyValue, DepartmentEntity departmentEntity);
  102. #endregion
  103. List<DepartmentEntity> GetAllList();
  104. }
  105. }