using Learun.Util; using System.Collections.Generic; namespace Learun.Application.Organization { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:陈彬彬 /// 日 期:2017.03.04 /// 描 述:岗位管理 /// public interface PostIBLL { #region 获取数据 /// /// 获取岗位数据列表(根据公司列表) /// /// 公司主键 /// List GetList(string companyId); /// /// 获取岗位数据列表(根据公司列表) /// /// 公司主键 /// 关键词 /// 部门Id /// List GetList(string companyId, string keyword, string departmentId); /// /// 获取岗位数据列表(根据主键串) /// /// 根据主键串 /// IEnumerable GetListByPostIds(string postIds); /// /// 获取树形结构数据 /// /// 公司主键 /// List GetTree(string companyId); /// /// 获取岗位实体数据 /// /// 主键 /// PostEntity GetEntity(string keyValue); bool GetAny(); #endregion #region 提交数据 /// /// 虚拟删除 /// /// 主键 void VirtualDelete(string keyValue); /// /// 保存岗位(新增、修改) /// /// 主键值 /// 岗位实体 /// void SaveEntity(string keyValue, PostEntity postEntity); #endregion List GetTree(string companyId, string parentId); List GetAllTree(List companylist); /// /// 判断是否是上级 /// /// 自己的岗位 /// 对方的岗位 /// bool IsUp(string myId, string otherId); /// /// 判断是否是下级 /// /// 自己的岗位 /// 对方的岗位 /// bool IsDown(string myId, string otherId); /// /// 获取上级岗位人员ID /// /// 岗位id /// 级数 /// List GetUpIdList(string strPostIds, int level); /// /// 获取下级岗位人员ID /// /// 岗位id /// 级数 /// List GetDownIdList(string strPostIds, int level); } }