using System;
using System.Collections.Generic;
using System.Text;
using Song.Entities;
namespace Song.ServiceInterfaces
{
///
/// 院系用户组的管理
///
public interface IEmpGroup : WeiSha.Common.IBusinessInterface
{
///
/// 添加
///
/// 业务实体
void Add(EmpGroup entity);
///
/// 增加员工与组的关联
///
///
///
void AddRelation(int empId, int grpId);
///
/// 根据员工Id,删除关联
///
///
void DelRelation4Emplyee(int empId);
///
/// 根据组Id,删除关联
///
///
void DelRelation4Group(int grpId);
///
/// 修改
///
/// 业务实体
void Save(EmpGroup entity);
///
/// 删除
///
/// 业务实体
void Delete(EmpGroup entity);
///
/// 删除,按主键ID;
///
/// 实体的主键
void Delete(int identify);
///
/// 获取单一实体对象,按主键ID;
///
/// 实体的主键
///
EmpGroup GetSingle(int identify);
///
/// 获取对象;即所有用户组;
///
///
EmpGroup[] GetAll(int orgid);
EmpGroup[] GetAll(int orgid, bool? isUse);
///
/// 获取某员工所属的所有组;
///
/// 员工id
///
EmpGroup[] GetAll4Emp(int EmpAccountId);
///
/// 获取某个组的所有员工
///
/// 组id
///
EmpAccount[] GetAll4Group(int grpId);
///
/// 获取某个组的所有在职员工
///
///
///
///
EmpAccount[] GetAll4Group(int grpId,bool use);
///
/// 当前对象名称是否重名
///
/// 业务实体
///
bool IsExist(EmpGroup entity);
///
/// 将当前项目向上移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动;
///
///
/// 如果已经处于顶端,则返回false;移动成功,返回true
bool RemoveUp(int orgid, int id);
///
/// 将当前项目向下移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动;
///
///
/// 如果已经处于顶端,则返回false;移动成功,返回true
bool RemoveDown(int orgid, int id);
}
}