using System;
using System.Collections.Generic;
using System.Text;
using Song.Entities;
namespace Song.ServiceInterfaces
{
///
/// 院系职位的管理
///
public interface INotice : WeiSha.Common.IBusinessInterface
{
///
/// 添加
///
/// 业务实体
void Add(Notice entity);
///
/// 修改
///
/// 业务实体
void Save(Notice entity);
///
/// 删除
///
/// 业务实体
void Delete(Notice entity);
///
/// 删除,按主键ID;
///
/// 实体的主键
void Delete(int identify);
///
/// 删除,按公告名称
///
/// 公告名称
void Delete(string name);
///
/// 获取单一实体对象,按主键ID;
///
/// 实体的主键
///
Notice NoticeSingle(int identify);
///
/// 获取单一实体对象,按公告名称
///
/// 公告名称
///
Notice NoticeSingle(string ttl);
///
/// 当前公告的上一条公告
///
///
///
///
Notice NoticePrev(int identify, int orgid);
///
/// 当前公告的下一条公告
///
///
///
///
Notice NoticeNext(int identify, int orgid);
///
/// 获取对象;即所有公告;
///
///
Notice[] GetAll();
///
/// 获取某个院系的所有公告;
///
/// 是否显示
///
Notice[] GetAll(int orgid, bool? isShow);
///
/// 获取指定个数的记录
///
///
///
///
///
Notice[] GetCount(int orgid, bool? isShow, int count);
///
/// 取具体的数量
///
///
///
///
int OfCount(int orgid, bool? isShow);
///
/// 分页获取所有的公告;
///
/// 每页显示几条记录
/// 当前第几页
/// 记录总数
///
Notice[] GetPager(int orgid, int size, int index, out int countSum);
///
/// 分页获取所有的公告;
///
/// 是否显示
/// 查询字符
///
///
///
///
Notice[] GetPager(int orgid, bool? isShow, string searTxt, int size, int index, out int countSum);
}
}