using FangYar.DALFactory; using FangYar.IDAL.TBL; using FangYar.Model.TBL; using System.Collections.Generic; namespace FangYar.BLL.TBL { public class SysNoticeBLL { private static readonly SysNoticeIDAL dal = Factory.GeSysNoticeDAL(); /// /// 根据ID获取实体对象 /// public TBL_SYS_NOTICE GetModelByID(string id) { return dal.GetModelByID(id); } /// /// 根据条件查询 /// public List GetList(string where) { return dal.GetList(where); } public bool Add(TBL_SYS_NOTICE model) { return dal.Add(model); } public bool Edit(TBL_SYS_NOTICE model) { return dal.Edit(model); } public bool Delete(string IDList) { return dal.Delete(IDList); } /// /// 获取记录数 /// public int Count(string where) { return dal.Count(where); } public int UnReadNoticeCount(string where) { return dal.UnReadNoticeCount(where); } public List UnReadNoticeList(string where) { return dal.UnReadNoticeList(where); } /// /// 分页 /// /// /// /// /// public void QueryProc(int PageIndex, int PageSize, string strwhere, string order) { dal.QueryProc(PageIndex, PageSize, strwhere, order); } /// /// 分页 /// /// /// /// /// /// public List QueryList(int PageIndex, int PageSize, string strwhere, string order) { return dal.QueryList(PageIndex, PageSize, strwhere, order); } public List QueryJoinPageList(int PageIndex, int PageSize, string strwhere, string order) { return dal.QueryJoinPageList(PageIndex, PageSize, strwhere, order); } public List Add(TBL_SYS_NOTICE model,List listmodel) { return dal.Add(model, listmodel); } public List Edit(TBL_SYS_NOTICE model, List listmodel,int ifUpdateReciver) { return dal.Edit(model, listmodel, ifUpdateReciver); } } }