You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

97 lines
3.3 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. /// 获取部门本身和子部门的id
  64. /// </summary>
  65. /// <param name="parentId">父级ID</param>
  66. /// <returns></returns>
  67. List<string> GetSubNodes(string companyId, string parentId);
  68. /// <summary>
  69. /// 获取部门映射数据
  70. /// </summary>
  71. /// <returns></returns>
  72. Dictionary<string, DepartmentModel> GetModelMap();
  73. bool GetAny();
  74. #endregion
  75. #region 提交数据
  76. /// <summary>
  77. /// 虚拟删除部门信息
  78. /// </summary>
  79. /// <param name="keyValue">主键</param>
  80. void VirtualDelete(string keyValue);
  81. /// <summary>
  82. /// 保存部门信息(新增、修改)
  83. /// </summary>
  84. /// <param name="keyValue">主键值</param>
  85. /// <param name="departmentEntity">部门实体</param>
  86. /// <returns></returns>
  87. void SaveEntity(string keyValue, DepartmentEntity departmentEntity);
  88. #endregion
  89. List<DepartmentEntity> GetAllList();
  90. }
  91. }