IDepartmentManage.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Central.Control.Domain;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace MES.Production.Service.IService
  7. {
  8. /// <summary>
  9. /// Service层部门管理接口
  10. /// add 作者: 季健国 QQ:181589805 by 2016-05-22
  11. /// </summary>
  12. public interface IDepartmentManage : IRepository<SYS_DISTRIBUTORS>
  13. {
  14. /// <summary>
  15. /// 递归部门列表,返回按级别排序
  16. /// add 作者: 季健国 QQ:181589805 by 2016-06-03
  17. /// </summary>
  18. /// <param name="list"></param>
  19. /// <returns></returns>
  20. List<SYS_DISTRIBUTORS> RecursiveDepartment(List<SYS_DISTRIBUTORS> list);
  21. /// <summary>
  22. /// 根据部门ID递归部门列表,返回子部门+本部门的对象集合
  23. /// add 作者: 季健国 QQ:181589805 by 2016-06-03
  24. /// </summary>
  25. List<SYS_DISTRIBUTORS> RecursiveDepartment(string parentId);
  26. /// <summary>
  27. ///
  28. /// </summary>
  29. /// <param name="parentId"></param>
  30. /// <returns></returns>
  31. List<SYS_DISTRIBUTORS> RecursiveDepartmentNew(string parentId);
  32. /// <summary>
  33. /// 自动创建部门编号
  34. /// add 作者: 季健国 QQ:181589805 by 2016-06-03
  35. /// </summary>
  36. string CreateCode(string parentCode);
  37. /// <summary>
  38. /// 部门是否存在下级部门
  39. /// add 作者: 季健国 QQ:181589805 by 2016-06-03
  40. /// </summary>
  41. bool DepartmentIsExists(string idlist);
  42. /// <summary>
  43. /// 根据部门ID获取部门名称,不存在返回空
  44. /// </summary>
  45. string GetDepartmentName(string id);
  46. /// <summary>
  47. /// 显示错层方法
  48. /// </summary>
  49. object GetDepartmentName(string name, decimal? level);
  50. /// <summary>
  51. /// 获取部门父级列表
  52. /// </summary>
  53. System.Collections.IList GetDepartmentByDetail();
  54. /// <summary>
  55. /// 获取部门父级列表
  56. /// </summary>
  57. System.Collections.IList GetDepartmentByDetailNew();
  58. /// <summary>
  59. /// 获取部门父级列表
  60. /// </summary>
  61. System.Collections.IList GetDepartmentByDetailNew(int salseid, int? prov=0);
  62. }
  63. }