using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL.Inquiry;
using AbstractFactory;
using CY.Model;
using CY.Model.Inquiry;
namespace CY.BLL.Inquiry
{
///
/// DM单快速询价业务逻辑类
///
public class DMFastCostBLL
{
IDMFastCostDAL _iDMFastCostDAL = null;
public DMFastCostBLL()
{
_iDMFastCostDAL = Factory.GetDALByInterfaceName(DALInterface.IDMFastCostDAL) as IDMFastCostDAL;
}
///
/// 获取DM单快速询价
///
///
///
///
public IList GetModelList(Guid inquiryId)
{
return _iDMFastCostDAL.GetModelList(inquiryId);
}
///
/// 获取DM快速询价价格
///
///
///
///
///
///
public decimal GetDMFastPrice(int gramWeight, string singleOrdouble, int printCount, Guid inquiryId)
{
return _iDMFastCostDAL.GetDMFastPrice(gramWeight, singleOrdouble, printCount, inquiryId);
}
///
/// 保存DM单快速询价
///
///
///
///
///
public bool SaveModelList(IList list,InquiryCondition inquiryCondition)
{
return _iDMFastCostDAL.SaveModelList(list, inquiryCondition);
}
}
}