/** * 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 { /// /// 需求信息业务逻辑 /// public class EC_DemandDescribeBLL { IEC_DemandDescribeDAL _iEC_DemandDescribeDAL = null; /// /// 初始化 /// public EC_DemandDescribeBLL() { _iEC_DemandDescribeDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_DemandDescribeDAL) as IEC_DemandDescribeDAL; } /// /// 添加数据 /// /// 模型实例 /// public bool AddData(EC_DemandDescribe EC_DemandDescribe) { return _iEC_DemandDescribeDAL.InserModel(EC_DemandDescribe); } /// /// 更新数据 /// /// 模型实例 /// public bool UpdateData(EC_DemandDescribe EC_DemandDescribe) { return _iEC_DemandDescribeDAL.UpdateModel(EC_DemandDescribe); } /// /// 删除数据 /// /// 模型实例 /// public bool DeleteData(EC_DemandDescribe EC_DemandDescribe) { return _iEC_DemandDescribeDAL.DeleteModel(EC_DemandDescribe); } /// /// 根据编号获取实体信息 /// /// 主键编号 /// public EC_DemandDescribe SelectModleById(int id) { return _iEC_DemandDescribeDAL.SelectModleById(id); } /// /// 根据编号批量删除数据 /// /// 当前操作人 /// 编号集合 /// public bool DeleteDataByIds(string currentOperator, params int[] ids) { return _iEC_DemandDescribeDAL.DeleteDataByIds(currentOperator, ids); } /// /// 分页查询 /// /// 查询对象 /// 分页对象 /// public IEnumerable SelectModelPage(Infrastructure.Query.Query query, Infrastructure.Query.Pagination pagination) { return _iEC_DemandDescribeDAL.SelectModelPage(query, pagination); } /// /// 分页查询(前台用) /// /// 分页对象 /// 省 /// 市 /// 印刷类型 /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, string province = "", string city = "", int printTypeId = -1) { return _iEC_DemandDescribeDAL.SelectModelPage(pagination, province, city, printTypeId); } /// /// 分页查询(后台用) /// /// 分页对象 /// 会员编号 /// 名称 /// 开始时间 /// 结束时间 /// 印刷类型 /// 状态 /// public IEnumerable 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); } /// /// 改变需求信息状态 /// /// 数据编号 /// 状态 /// public bool ChangeState(int id, int state) { return _iEC_DemandDescribeDAL.ChangeState(id, state); } } }