Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

99 lignes
3.5 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.03.04
  10. /// 描 述:岗位管理
  11. /// </summary>
  12. public interface PostIBLL
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 获取岗位数据列表(根据公司列表)
  17. /// </summary>
  18. /// <param name="companyId">公司主键</param>
  19. /// <returns></returns>
  20. List<PostEntity> GetList(string companyId);
  21. /// <summary>
  22. /// 获取岗位数据列表(根据公司列表)
  23. /// </summary>
  24. /// <param name="companyId">公司主键</param>
  25. /// <param name="keyword">关键词</param>
  26. /// <param name="keyword">部门Id</param>
  27. /// <returns></returns>
  28. List<PostEntity> GetList(string companyId, string keyword, string departmentId);
  29. /// <summary>
  30. /// 获取岗位数据列表(根据主键串)
  31. /// </summary>
  32. /// <param name="postIds">根据主键串</param>
  33. /// <returns></returns>
  34. IEnumerable<PostEntity> GetListByPostIds(string postIds);
  35. /// <summary>
  36. /// 获取树形结构数据
  37. /// </summary>
  38. /// <param name="companyId">公司主键</param>
  39. /// <returns></returns>
  40. List<TreeModel> GetTree(string companyId);
  41. /// <summary>
  42. /// 获取岗位实体数据
  43. /// </summary>
  44. /// <param name="keyValue">主键</param>
  45. /// <returns></returns>
  46. PostEntity GetEntity(string keyValue);
  47. bool GetAny();
  48. #endregion
  49. #region 提交数据
  50. /// <summary>
  51. /// 虚拟删除
  52. /// </summary>
  53. /// <param name="keyValue">主键</param>
  54. void VirtualDelete(string keyValue);
  55. /// <summary>
  56. /// 保存岗位(新增、修改)
  57. /// </summary>
  58. /// <param name="keyValue">主键值</param>
  59. /// <param name="postEntity">岗位实体</param>
  60. /// <returns></returns>
  61. void SaveEntity(string keyValue, PostEntity postEntity);
  62. #endregion
  63. List<TreeModel> GetTree(string companyId, string parentId);
  64. List<TreeModel> GetAllTree(List<CompanyEntity> companylist);
  65. /// <summary>
  66. /// 判断是否是上级
  67. /// </summary>
  68. /// <param name="myId">自己的岗位</param>
  69. /// <param name="otherId">对方的岗位</param>
  70. /// <returns></returns>
  71. bool IsUp(string myId, string otherId);
  72. /// <summary>
  73. /// 判断是否是下级
  74. /// </summary>
  75. /// <param name="myId">自己的岗位</param>
  76. /// <param name="otherId">对方的岗位</param>
  77. /// <returns></returns>
  78. bool IsDown(string myId, string otherId);
  79. /// <summary>
  80. /// 获取上级岗位人员ID
  81. /// </summary>
  82. /// <param name="strPostIds">岗位id</param>
  83. /// <param name="level">级数</param>
  84. /// <returns></returns>
  85. List<string> GetUpIdList(string strPostIds, int level);
  86. /// <summary>
  87. /// 获取下级岗位人员ID
  88. /// </summary>
  89. /// <param name="strPostIds">岗位id</param>
  90. /// <param name="level">级数</param>
  91. /// <returns></returns>
  92. List<string> GetDownIdList(string strPostIds, int level);
  93. }
  94. }