using System; using System.Collections.Generic; using System.Text; using Song.Entities; namespace Song.ServiceInterfaces { /// /// 院系职位的管理 /// public interface IOrganization : WeiSha.Common.IBusinessInterface { #region 机构管理 /// /// 添加机构 /// /// 业务实体 void OrganAdd(Organization entity); /// /// 修改 /// /// 业务实体 void OrganSave(Organization entity); /// /// 设置默认机构 /// /// void OrganSetDefault(int identify); /// /// 系统默认采用的机构(注:不是Root机构) /// /// Organization OrganDefault(); /// /// 用于系统管理的机构(注:即Root机构) /// /// Organization OrganRoot(); /// /// 当前机构,通过二级域名判断,如果不存在则返回默认机构 /// /// Organization OrganCurrent(); /// /// 获取对象 /// /// Organization OrganSingle(int identify); /// /// 根据主键删除公司。 /// /// 主键id void OrganDelete(int identify); /// /// 生成当前机构的手机端二维码 /// void OrganBuildQrCode(); void OrganBuildQrCode(Organization entity); /// /// 取所有机构 /// /// 是否启用 /// 机构等级 /// Organization[] OrganAll(bool? isUse, int level); /// /// 获取指定数量的对象 /// /// 是否使用 /// 是否在前端显示 /// 机构等级 /// 取多少条 /// Organization[] OrganCount(bool? isUse, bool? isShow, int level, int count); /// /// 清理临时文件 /// /// 机构id /// 清理多少天之前的 void OrganClearTemp(int orgid,int day); /// /// 清理当前机构的数据 /// /// void OrganClear(int orgid); /// /// 构建缓存 /// List OrganBuildCache(); /// /// 分页获取机构 /// /// 是否使用 /// 机构等级 /// 机构名称关键字 /// /// /// /// Organization[] OrganPager(bool? isUse, int level, string searTxt, int size, int index, out int countSum); #endregion #region 机构等级 /// /// 添加机构等级 /// /// 业务实体 void LevelAdd(OrganLevel entity); /// /// 修改 /// /// 业务实体 void LevelSave(OrganLevel entity); /// /// 设置默认等级,默认等级只有一个 /// /// void LevelSetDefault(int identify); /// /// 获取对象 /// /// OrganLevel LevelSingle(int identify); /// /// 默认的机构等级 /// /// OrganLevel LevelDefault(); /// /// 获取所有对象 /// /// OrganLevel[] LevelAll(bool? isUse); /// /// 根据主键删除公司。 /// /// 主键id void LevelDelete(int identify); /// /// 将当前项目向上移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool LevelUp(int id); /// /// 将当前项目向下移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool LevelDown(int id); #endregion } }