using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL.Inquiry;
using AbstractFactory;
using CY.Model;
using CY.Infrastructure.Query;
namespace CY.BLL.Inquiry
{
///
/// 询价记录业务逻辑
///
public class RecordInfoBLL
{
public IRecordInfoDAL _iRecordInfoDAL = null;
public RecordInfoBLL()
{
_iRecordInfoDAL = Factory.GetDALByInterfaceName(DALInterface.IRecordInfoDAL) as IRecordInfoDAL;
}
///
/// 新增询价记录
///
///
///
public bool InsertModel(Inquiry_RecordInfo model)
{
return _iRecordInfoDAL.InserModel(model);
}
///
/// 修改询价记录
///
///
///
public bool UpdateModel(Inquiry_RecordInfo model)
{
return _iRecordInfoDAL.UpdateModel(model);
}
///
/// 修改询价记录
///
///
///
public bool DeleteModel(Inquiry_RecordInfo model)
{
return _iRecordInfoDAL.DeleteModel(model);
}
///
/// 批量删除记录
///
///
///
public bool DeleteModelList(List keyIdList)
{
return _iRecordInfoDAL.DeleteModelList(keyIdList);
}
///
/// 根据主键获取实体
///
///
///
public Inquiry_RecordInfo GetModel(int key)
{
return _iRecordInfoDAL.GetModel(key);
}
///
/// 获取我的询价列表
///
///
///
public IList GetModeListByMy(Guid inquiryPersonId, DateTime startTime, DateTime endTime, int printTypeId, string firmName, int resultStatus, Pagination pa)
{
return _iRecordInfoDAL.GetModeListByMy(inquiryPersonId,startTime,endTime,printTypeId,firmName,resultStatus,pa);
}
///
/// 获取受理询价列表
///
///
///
public IList GetModeListByFirm(Guid firmId, DateTime startTime, DateTime endTime, int printTypeId, string customerName, int resultStatus, Pagination pa)
{
return _iRecordInfoDAL.GetModeListByFirm(firmId, startTime, endTime, printTypeId, customerName, resultStatus, pa);
}
}
}