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_AllianceBasicBLL
{
IInfo_AllianceBasicDAL _IInfo_AllianceBasicDal = null;
///
/// 初始化构造
///
public Info_AllianceBasicBLL()
{
//获取Info_AllianceBasic DAL实现
_IInfo_AllianceBasicDal = Factory.GetDALByInterfaceName(DALInterface.IInfo_AllianceBasicDAL) as IInfo_AllianceBasicDAL;
}
///
/// 新增广告信息
///
///
///
///
///
public bool InsertModel(CY.Model.Info_AllianceBasic m_Info_AllianceBasic)
{
try
{
return _IInfo_AllianceBasicDal.InserModel(m_Info_AllianceBasic);
}
catch (Exception ex)
{
throw ex;
}
}
///
/// 修改广告信息
///
///
///
public bool UpdateModel(CY.Model.Info_AllianceBasic m_Info_AllianceBasic)
{
try
{
return _IInfo_AllianceBasicDal.UpdateModel(m_Info_AllianceBasic);
}
catch (Exception ex)
{
throw ex;
}
}
///
/// 删除广告信息
///
///
///
public bool DeleteModel(CY.Model.Info_AllianceBasic rType)
{
try
{
_IInfo_AllianceBasicDal.DeleteModel(rType);
}
catch (Exception ex)
{
throw ex;
}
return true;
}
///
/// 查询信息
///
///
public Info_AllianceBasic SelectModel()
{
try
{
return _IInfo_AllianceBasicDal.SelectModel();
}
catch (Exception ex)
{
throw ex;
}
}
///
/// 列表查询
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination)
{
return _IInfo_AllianceBasicDal.SelectModelPage(pagination);
}
}
}