1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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);
       }
    }
}