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
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
{
    public class Soft_KeyCodeBLL
    {
        ISoft_KeyCodeDAL iSoft_KeyCodeDAL = null;
 
        public Soft_KeyCodeBLL()
        {
            iSoft_KeyCodeDAL = Factory.GetDALByInterfaceName(DALInterface.ISoft_KeyCodeDAL) as ISoft_KeyCodeDAL;
        }
 
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool InsertModel(Model.Soft_KeyCode model)
        {
            return iSoft_KeyCodeDAL.InserModel(model);
        }
 
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool UpdateModel(Model.Soft_KeyCode model)
        {
 
            return iSoft_KeyCodeDAL.UpdateModel(model);
        }
 
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool DeleteModel(Model.Soft_KeyCode model)
        {
 
            return iSoft_KeyCodeDAL.DeleteModel(model);
        }
 
        /// <summary>
        /// 根据编号获得信息
        /// </summary>
        /// <param name="Keyid">编号</param>
        /// <returns></returns>
        public Soft_KeyCode GetModelByKeyid(int? Keyid)
        {
            return iSoft_KeyCodeDAL.GetModelByKeyid(Keyid);
        }
 
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pagination"></param>
        /// <returns></returns>
        public IEnumerable<Model.Soft_KeyCode> SelectModelPage(Infrastructure.Query.Pagination pagination, int? _KeySoftId, string _KeySoftName, string _KeyCode, int? _KeyStatus, int? _KeyProxyId, DateTime? _BeginKeyCreatTime, DateTime? _EndKeyCreatTime, DateTime? _BeginKeyOutTime, DateTime? _EndKeyOutTime, DateTime? _BeginKeyUseTime, DateTime? _EndKeyUseTime, string _KeyUseIP, int? _KeyClientId, string _KeyClientName, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator, string _KeyWord, int? _txtKeyVersion)
        {
            return iSoft_KeyCodeDAL.SelectModelPage(pagination, _KeySoftId, _KeySoftName, _KeyCode, _KeyStatus, _KeyProxyId, _BeginKeyCreatTime, _EndKeyCreatTime, _BeginKeyOutTime, _EndKeyOutTime, _BeginKeyUseTime, _EndKeyUseTime, _KeyUseIP, _KeyClientId, _KeyClientName, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator, _KeyWord, _txtKeyVersion);
        }
    }
}