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_PrizeReciveAddressBLL
|
{
|
IEC_PrizeReciveAddressDAL prizeReciveAddressDAL;
|
public EC_PrizeReciveAddressBLL()
|
{
|
prizeReciveAddressDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_PrizeReciveAddressDAL) as IEC_PrizeReciveAddressDAL;
|
|
}
|
/// <summary>
|
/// 插入一个奖品地址
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(EC_PrizeReciveAddress model)
|
{
|
|
return prizeReciveAddressDAL.InserModel(model);
|
}
|
/// <summary>
|
/// 修改一个地址
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(EC_PrizeReciveAddress model)
|
{
|
return prizeReciveAddressDAL.UpdateModel(model);
|
|
}
|
/// <summary>
|
/// 根据Keyid获取单个奖品获取地址
|
/// </summary>
|
/// <param name="Keyid"></param>
|
/// <returns></returns>
|
public EC_PrizeReciveAddress getOnePriceAddress(int? Keyid)
|
{
|
return prizeReciveAddressDAL.getOnePriceAddress(Keyid);
|
}
|
/// <summary>
|
/// 获取全部奖品地址
|
/// </summary>
|
/// <returns></returns>
|
public IEnumerable<Model.EC_PrizeReciveAddress> getAllPriceAddress(Pagination pa)
|
{
|
return prizeReciveAddressDAL.getAllPriceAddress( pa);
|
|
}
|
/// <summary>
|
/// 不实现分页的全部地址 用于奖品信息的使用
|
/// </summary>
|
/// <param name="pa"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.EC_PrizeReciveAddress> getAllPriceAddress()
|
{
|
return prizeReciveAddressDAL.getAllPriceAddress();
|
|
}
|
/// <summary>
|
/// 删除奖品地址
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(EC_PrizeReciveAddress model)
|
{
|
return prizeReciveAddressDAL.DeleteModel(model);
|
}
|
}
|
}
|