using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL;
using AbstractFactory;
using CY.Model;
using CY.Infrastructure.Query;
namespace CY.BLL
{
///
/// 吴辉
/// 客户收货方式业务逻辑
///
public class EC_AcceptWayByCustomersBLL
{
IEC_AcceptWayByCustomersDAL _IEC_AcceptWayByCustomersDal;
///
/// 初始化构造
///
public EC_AcceptWayByCustomersBLL()
{
_IEC_AcceptWayByCustomersDal = Factory.GetDALByInterfaceName(DALInterface.IEC_AcceptWayByCustomersDAL) as IEC_AcceptWayByCustomersDAL;
}
///
/// 新增
///
///
///
public bool InsertModel(EC_AcceptWayByCustomers rType)
{
return _IEC_AcceptWayByCustomersDal.InserModel(rType);
}
///
/// 修改
///
///
///
public bool UpdateModel(EC_AcceptWayByCustomers rType)
{
return _IEC_AcceptWayByCustomersDal.UpdateModel(rType);
}
///
/// 通过TargetId获取单个收获方式
///
/// 来源id
///
public EC_AcceptWayByCustomers GetModelByTargetId(Guid TargetId)
{
return _IEC_AcceptWayByCustomersDal.SelectModelByTargetId(TargetId);
}
}
}