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; namespace CY.BLL { /// /// 广告信息的业务逻辑类 /// public class Info_AllianceBLL { IInfo_AllianceDAL _IInfo_AllianceDal = null; /// /// 初始化构造 /// public Info_AllianceBLL() { //获取Info_Alliance DAL实现 _IInfo_AllianceDal = Factory.GetDALByInterfaceName(DALInterface.IInfo_AllianceDAL) as IInfo_AllianceDAL; } /// /// 新增广告信息 /// /// /// /// /// public bool InsertModel(CY.Model.Info_Alliance m_Info_Alliance) { try { return _IInfo_AllianceDal.InserModel(m_Info_Alliance); } catch (Exception ex) { throw ex; } } /// /// 修改广告信息 /// /// /// public bool UpdateModel(CY.Model.Info_Alliance m_Info_Alliance) { try { return _IInfo_AllianceDal.UpdateModel(m_Info_Alliance); } catch (Exception ex) { throw ex; } } /// /// 删除广告信息 /// /// /// public bool DeleteModel(CY.Model.Info_Alliance rType) { try { _IInfo_AllianceDal.DeleteModel(rType); } catch (Exception ex) { throw ex; } return true; } /// /// 根据编号查询单个信息 /// /// 编号 /// public Info_Alliance SelectModelByKeyId(int? KeyId) { try { return _IInfo_AllianceDal.SelectModelByKeyId(KeyId); } catch (Exception ex) { throw ex; } } /// /// 列表查询 /// /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination,string Type) { return _IInfo_AllianceDal.SelectModelPage(pagination, Type); } } }