You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.8 KiB
103 lines
2.8 KiB
9 months ago
|
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();
|
||
|
/// <summary>
|
||
|
/// 根据ID获取实体对象
|
||
|
/// </summary>
|
||
|
public TBL_SYS_NOTICE GetModelByID(string id)
|
||
|
{
|
||
|
return dal.GetModelByID(id);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 根据条件查询
|
||
|
/// </summary>
|
||
|
public List<TBL_SYS_NOTICE> 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);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取记录数
|
||
|
/// </summary>
|
||
|
public int Count(string where)
|
||
|
{
|
||
|
return dal.Count(where);
|
||
|
}
|
||
|
|
||
|
public int UnReadNoticeCount(string where)
|
||
|
{
|
||
|
return dal.UnReadNoticeCount(where);
|
||
|
}
|
||
|
|
||
|
public List<TBL_SYS_NOTICE> UnReadNoticeList(string where)
|
||
|
{
|
||
|
return dal.UnReadNoticeList(where);
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 分页
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
public void QueryProc(int PageIndex, int PageSize, string strwhere, string order)
|
||
|
{
|
||
|
dal.QueryProc(PageIndex, PageSize, strwhere, order);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 分页
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<TBL_SYS_NOTICE> QueryList(int PageIndex, int PageSize, string strwhere, string order)
|
||
|
{
|
||
|
return dal.QueryList(PageIndex, PageSize, strwhere, order);
|
||
|
}
|
||
|
|
||
|
public List<TBL_SYS_NOTICE> QueryJoinPageList(int PageIndex, int PageSize, string strwhere, string order)
|
||
|
{
|
||
|
return dal.QueryJoinPageList(PageIndex, PageSize, strwhere, order);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
public List<FangYar.Model.OA.CommonSql> Add(TBL_SYS_NOTICE model,List<TBL_SYS_NOTICESENDRECORD> listmodel)
|
||
|
{
|
||
|
return dal.Add(model, listmodel);
|
||
|
}
|
||
|
|
||
|
public List<FangYar.Model.OA.CommonSql> Edit(TBL_SYS_NOTICE model, List<TBL_SYS_NOTICESENDRECORD> listmodel,int ifUpdateReciver)
|
||
|
{
|
||
|
return dal.Edit(model, listmodel, ifUpdateReciver);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|