1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using Central.Control.Domain;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace MES.Production.Service.IService
- {
- /// <summary>
- /// Service层部门管理接口
- /// add 作者: 季健国 QQ:181589805 by 2016-05-22
- /// </summary>
- public interface IDepartmentManage : IRepository<SYS_DISTRIBUTORS>
- {
- /// <summary>
- /// 递归部门列表,返回按级别排序
- /// add 作者: 季健国 QQ:181589805 by 2016-06-03
- /// </summary>
- /// <param name="list"></param>
- /// <returns></returns>
- List<SYS_DISTRIBUTORS> RecursiveDepartment(List<SYS_DISTRIBUTORS> list);
- /// <summary>
- /// 根据部门ID递归部门列表,返回子部门+本部门的对象集合
- /// add 作者: 季健国 QQ:181589805 by 2016-06-03
- /// </summary>
- List<SYS_DISTRIBUTORS> RecursiveDepartment(string parentId);
- /// <summary>
- ///
- /// </summary>
- /// <param name="parentId"></param>
- /// <returns></returns>
- List<SYS_DISTRIBUTORS> RecursiveDepartmentNew(string parentId);
- /// <summary>
- /// 自动创建部门编号
- /// add 作者: 季健国 QQ:181589805 by 2016-06-03
- /// </summary>
- string CreateCode(string parentCode);
- /// <summary>
- /// 部门是否存在下级部门
- /// add 作者: 季健国 QQ:181589805 by 2016-06-03
- /// </summary>
- bool DepartmentIsExists(string idlist);
- /// <summary>
- /// 根据部门ID获取部门名称,不存在返回空
- /// </summary>
- string GetDepartmentName(string id);
- /// <summary>
- /// 显示错层方法
- /// </summary>
- object GetDepartmentName(string name, decimal? level);
- /// <summary>
- /// 获取部门父级列表
- /// </summary>
- System.Collections.IList GetDepartmentByDetail();
- /// <summary>
- /// 获取部门父级列表
- /// </summary>
- System.Collections.IList GetDepartmentByDetailNew();
- /// <summary>
- /// 获取部门父级列表
- /// </summary>
- System.Collections.IList GetDepartmentByDetailNew(int salseid, int? prov=0);
- }
- }
|