using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.IDAL.Inquiry;
|
using AbstractFactory;
|
using CY.Model;
|
|
namespace CY.BLL.Inquiry
|
{
|
public class StrangeCustomerInfoBLL
|
{
|
IStrangeCustomerInfoDAL _iStrangeCustomerInfoDAL = null;
|
|
public StrangeCustomerInfoBLL()
|
{
|
_iStrangeCustomerInfoDAL = Factory.GetDALByInterfaceName(DALInterface.IStrangeCustomerInfoDAL) as IStrangeCustomerInfoDAL;
|
}
|
|
/// <summary>
|
/// 新增陌生客户资料
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Inquiry_StrangeCustomerInfo model)
|
{
|
return _iStrangeCustomerInfoDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 修改陌生客户资料
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Inquiry_StrangeCustomerInfo model)
|
{
|
return _iStrangeCustomerInfoDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 根据主键获取实体
|
/// </summary>
|
/// <param name="key"></param>
|
/// <returns></returns>
|
public Inquiry_StrangeCustomerInfo GetModel(Guid key)
|
{
|
return _iStrangeCustomerInfoDAL.GetModel(key);
|
}
|
}
|
}
|