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
|
{
|
/// <summary>
|
/// 吴辉
|
/// 客户收货方式业务逻辑
|
/// </summary>
|
public class EC_AcceptWayByCustomersBLL
|
{
|
IEC_AcceptWayByCustomersDAL _IEC_AcceptWayByCustomersDal;
|
|
/// <summary>
|
/// 初始化构造
|
/// </summary>
|
public EC_AcceptWayByCustomersBLL()
|
{
|
_IEC_AcceptWayByCustomersDal = Factory.GetDALByInterfaceName(DALInterface.IEC_AcceptWayByCustomersDAL) as IEC_AcceptWayByCustomersDAL;
|
}
|
|
/// <summary>
|
/// 新增
|
/// </summary>
|
/// <param name="rType"></param>
|
/// <returns></returns>
|
public bool InsertModel(EC_AcceptWayByCustomers rType)
|
{
|
|
return _IEC_AcceptWayByCustomersDal.InserModel(rType);
|
}
|
/// <summary>
|
/// 修改
|
/// </summary>
|
/// <param name="rType"></param>
|
/// <returns></returns>
|
public bool UpdateModel(EC_AcceptWayByCustomers rType)
|
{
|
|
return _IEC_AcceptWayByCustomersDal.UpdateModel(rType);
|
}
|
/// <summary>
|
/// 通过TargetId获取单个收获方式
|
/// </summary>
|
/// <param name="TargetId">来源id</param>
|
/// <returns></returns>
|
public EC_AcceptWayByCustomers GetModelByTargetId(Guid TargetId)
|
{
|
return _IEC_AcceptWayByCustomersDal.SelectModelByTargetId(TargetId);
|
}
|
}
|
}
|