/**
* EC_DemandQuoteBLL.cs
*
* 功 能: 需求报价信息业务逻辑
* 类 名: EC_DemandQuoteBLL
*
* 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-24 10:35 吴崎均 新增根据编号获取实体
* V0.05 2013-5-28 13:50 吴崎均 修改批量删除方法定义及实现
*
*
*
*
*
*
*/
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_DemandQuoteBLL
{
IEC_DemandQuoteDAL _iEC_DemandQuoteDAL = null;
///
/// 初始化
///
public EC_DemandQuoteBLL()
{
_iEC_DemandQuoteDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_DemandQuoteDAL) as IEC_DemandQuoteDAL;
}
///
/// 添加数据
///
/// 模型实例
///
public bool AddData(EC_DemandQuote EC_DemandQuote)
{
return _iEC_DemandQuoteDAL.InserModel(EC_DemandQuote);
}
///
/// 更新数据
///
/// 模型实例
///
public bool UpdateData(EC_DemandQuote EC_DemandQuote)
{
return false;
}
///
/// 删除数据
///
/// 模型实例
///
public bool DeleteData(EC_DemandQuote EC_DemandQuote)
{
return _iEC_DemandQuoteDAL.DeleteModel(EC_DemandQuote);
}
///
/// 根据编号批量删除数据
///
/// 当前操作人
/// 编号集合
///
public bool DeleteDataByIds(string currentOperator, params int[] ids)
{
return _iEC_DemandQuoteDAL.DeleteDataByIds(currentOperator, ids);
}
///
/// 分页查询
///
/// 查询对象
/// 分页对象
///
public IEnumerable SelectModelPage(Infrastructure.Query.Query query, Infrastructure.Query.Pagination pagination)
{
return _iEC_DemandQuoteDAL.SelectModelPage(query, pagination);
}
///
/// 根据需求编号查询报价(分页)
///
/// 分页参数
/// 需求编号
/// 开始时间(可空)
/// 结束时间(可空)
///
public IEnumerable SelectModelPageByDemandId(Infrastructure.Query.Pagination pagination, int demandId, DateTime? beginDate = null, DateTime? endDate = null)
{
return _iEC_DemandQuoteDAL.SelectModelPageByDemandId(pagination, demandId, beginDate, endDate);
}
///
/// 根据报价人编号查询报价(分页)
///
/// 分页参数
/// 需求编号
/// 开始时间(可空)
/// 结束时间(可空)
///
public IEnumerable SelectModelPageByQuoterId(Infrastructure.Query.Pagination pagination, Guid quoterId, DateTime? beginDate = null, DateTime? endDate = null)
{
return _iEC_DemandQuoteDAL.SelectModelPageByQuoterId(pagination, quoterId, beginDate, endDate);
}
///
/// 根据编号获取实体
///
/// 报价编号
///
public EC_DemandQuote SelectModelById(int id)
{
return _iEC_DemandQuoteDAL.SelectModelById(id);
}
}
}