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;
|
|
namespace CY.BLL.EC
|
{
|
public class EC_PrizeInfoBLL
|
{
|
|
IEC_PrizeInfoDAL prizeInfoDAL = null;
|
public EC_PrizeInfoBLL()
|
{
|
prizeInfoDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_PrizeInfoDAL) as IEC_PrizeInfoDAL;
|
}
|
/// <summary>
|
/// 插入一个奖品地址
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(EC_PrizeInfo model)
|
{
|
|
return prizeInfoDAL.InserModel(model);
|
}
|
/// <summary>
|
/// 修改一个地址
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(EC_PrizeInfo model)
|
{
|
return prizeInfoDAL.UpdateModel(model);
|
|
}
|
/// <summary>
|
/// 根据Keyid获取单个奖品获取地址
|
/// </summary>
|
/// <param name="Keyid"></param>
|
/// <returns></returns>
|
public EC_PrizeInfo getOnePrizeInfo(int? Keyid)
|
{
|
return prizeInfoDAL.getOnePrizeInfo(Keyid);
|
}
|
/// <summary>
|
/// 获取全部奖品地址
|
/// </summary>
|
/// <returns></returns>
|
public IEnumerable<Model.EC_PrizeInfo> getAllPrizeInfo(Pagination pa, string PrizeName)
|
{
|
return prizeInfoDAL.getAllPrizeInfo(pa, PrizeName);
|
|
}
|
|
/// <summary>
|
/// 得到全部礼品信息-前台
|
/// </summary>
|
/// <returns></returns>
|
public IEnumerable<Model.EC_PrizeInfo> getAllPrizeInfo(Pagination pa)
|
{
|
return prizeInfoDAL.getAllPrizeInfo(pa);
|
}
|
/// <summary>
|
/// 删除奖品地址
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(EC_PrizeInfo model)
|
{
|
return prizeInfoDAL.DeleteModel(model);
|
}
|
|
|
|
|
|
|
|
}
|
}
|