using System; using System.Collections.Generic; using System.Linq; using System.Text; using CY.IDAL; using CY.Model; using AbstractFactory; using CY.IBaseDAL; using CY.Infrastructure.DESEncrypt; using CY.Infrastructure.Query; using System.Data; using CY.Infrastructure.Cache; using System.Reflection; namespace CY.BLL { /// /// 网站信息的业务逻辑类 /// public class Info_ContentBLL { IInfo_ContentDAL _IInfo_ContentDal = null; /// /// 初始化构造 /// public Info_ContentBLL() { //获取Info_Content DAL实现 _IInfo_ContentDal = Factory.GetDALByInterfaceName(DALInterface.IInfo_ContentDAL) as IInfo_ContentDAL; } /// /// 新增网站信息 /// /// /// /// /// public bool InsertModel(CY.Model.Info_Content m_Info_Content) { try { return _IInfo_ContentDal.InserModel(m_Info_Content); } catch (Exception ex) { throw ex; } } /// /// 修改网站信息 /// /// /// public bool UpdateModel(CY.Model.Info_Content m_Info_Content) { try { return _IInfo_ContentDal.UpdateModel(m_Info_Content); } catch (Exception ex) { throw ex; } } /// /// 删除网站信息 /// /// /// public bool DeleteModel(CY.Model.Info_Content rType) { try { _IInfo_ContentDal.DeleteModel(rType); } catch (Exception ex) { throw ex; } return true; } /// /// 根据编号查询信息 /// /// /// public Model.Info_Content SelectModelBySortId(int? Keyid) { return _IInfo_ContentDal.SelectModelBySortId(Keyid); } /// /// 根据分类编号分页查询 /// /// /// /// /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid FirmId, int? TypeId, int? SortId, string Title, string OrderString) { return _IInfo_ContentDal.SelectModelPage(pagination, FirmId, TypeId, SortId, Title, OrderString); } /// /// 根据分类编号,条数,标题,排序字段分页查询 /// /// /// /// public IEnumerable SelectListByWhere(int? SortId, int? Num, bool IsHomeShow) { return _IInfo_ContentDal.SelectListByWhere(SortId, Num, IsHomeShow); } /// /// 根据分类编号,条数,标题,排序字段分页查询 /// /// /// /// public IEnumerable SelectListBySortId(Guid Bussinessid, int? Num) { return _IInfo_ContentDal.SelectListBySortId(Bussinessid, Num); } } }