username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/**  
* EC_DemandDescribeBLL.cs
*
* 功 能: 需求信息业务逻辑
* 类 名: EC_DemandDescribeBLL
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2013-4-12 9:23       吴崎均    初版
* V0.02  2013-4-17 17:10      吴崎均    新增分页实现、获取单个实体实现 
* V0.03  2013-4-18 16:00      吴崎均    新增批量删除 
* V0.04  2013-5-28 13:50      吴崎均    修改批量删除方法定义及实现
* V0.05  2013-6-2 10:45       吴崎均    增加修改状态方法
*
*
*
*
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL;
using AbstractFactory;
using CY.Model;
 
namespace CY.BLL.EC
{
 
 
    /// <summary>
    /// 需求信息业务逻辑
    /// </summary>
    public class EC_DemandDescribeBLL
    {
        IEC_DemandDescribeDAL _iEC_DemandDescribeDAL = null;
        /// <summary>
        /// 初始化
        /// </summary>
        public EC_DemandDescribeBLL()
        {
            _iEC_DemandDescribeDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_DemandDescribeDAL) as IEC_DemandDescribeDAL;
        }
 
 
        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="modle">模型实例</param>
        /// <returns></returns>
        public bool AddData(EC_DemandDescribe EC_DemandDescribe)
        {
            return _iEC_DemandDescribeDAL.InserModel(EC_DemandDescribe);
        }
 
        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="modle">模型实例</param>
        /// <returns></returns>
        public bool UpdateData(EC_DemandDescribe EC_DemandDescribe)
        {
            return _iEC_DemandDescribeDAL.UpdateModel(EC_DemandDescribe);
        }
 
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="modle">模型实例</param>
        /// <returns></returns>
        public bool DeleteData(EC_DemandDescribe EC_DemandDescribe)
        {
            return _iEC_DemandDescribeDAL.DeleteModel(EC_DemandDescribe);
        }
 
        /// <summary>
        /// 根据编号获取实体信息
        /// </summary>
        /// <param name="id">主键编号</param>
        /// <returns></returns>
        public EC_DemandDescribe SelectModleById(int id)
        {
            return _iEC_DemandDescribeDAL.SelectModleById(id);
        }
 
        /// <summary>
        /// 根据编号批量删除数据
        /// </summary>
        /// <param name="currentOperator">当前操作人</param>
        /// <param name="ids">编号集合</param>
        /// <returns></returns>
        public bool DeleteDataByIds(string currentOperator, params int[] ids)
        {
            return _iEC_DemandDescribeDAL.DeleteDataByIds(currentOperator, ids);
        }
 
 
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="query">查询对象</param>
        /// <param name="pagination">分页对象</param>
        /// <returns></returns>
        public IEnumerable<EC_DemandDescribe> SelectModelPage(Infrastructure.Query.Query query, Infrastructure.Query.Pagination pagination)
        {
            return _iEC_DemandDescribeDAL.SelectModelPage(query, pagination);
        }
 
        /// <summary>
        /// 分页查询(前台用)
        /// </summary>
        /// <param name="pagination">分页对象</param>
        /// <param name="province">省</param>
        /// <param name="city">市</param>
        /// <param name="printTypeId">印刷类型</param>
        /// <returns></returns>
        public IEnumerable<EC_DemandDescribe> SelectModelPage(Infrastructure.Query.Pagination pagination, string province = "", string city = "", int printTypeId = -1)
        {
            return _iEC_DemandDescribeDAL.SelectModelPage(pagination, province, city, printTypeId);
        }
        /// <summary>
        /// 分页查询(后台用)
        /// </summary>
        /// <param name="pagination">分页对象</param>
        /// <param name="memberId">会员编号</param>
        /// <param name="name">名称</param>
        /// <param name="beginDate">开始时间</param>
        /// <param name="endDate">结束时间</param>
        /// <param name="printTypeId">印刷类型</param>
        /// <param name="state">状态</param>
        /// <returns></returns>
        public IEnumerable<EC_DemandDescribe> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid memberId, string name, DateTime? beginDate, DateTime? endDate, int printTypeId = -1, int? state = null)
        {
 
            return _iEC_DemandDescribeDAL.SelectModelPage(pagination, memberId, name, beginDate, endDate, printTypeId, state);
        }
        /// <summary>
        /// 改变需求信息状态
        /// </summary>
        /// <param name="id">数据编号</param>
        /// <param name="state">状态</param>
        /// <returns></returns>
        public bool ChangeState(int id, int state)
        {
            return _iEC_DemandDescribeDAL.ChangeState(id, state);
        }
    }
}