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_AcceptWayBySellerBLL { IEC_AcceptWayBySellerDAL _IEC_AcceptWayBySellerDal; /// /// 初始化构造 /// public EC_AcceptWayBySellerBLL() { _IEC_AcceptWayBySellerDal = Factory.GetDALByInterfaceName(DALInterface.IEC_AcceptWayBySellerDAL) as IEC_AcceptWayBySellerDAL; } /// /// 新增 /// /// /// public bool InsertModel(EC_AcceptWayBySeller rType) { return _IEC_AcceptWayBySellerDal.InserModel(rType); } /// /// 修改 /// /// /// public bool UpdateModel(EC_AcceptWayBySeller rType) { return _IEC_AcceptWayBySellerDal.UpdateModel(rType); } /// /// 通过TargetId获取单个收获方式 /// /// 来源id /// public EC_AcceptWayBySeller GetModelByTargetId(Guid TargetId) { return _IEC_AcceptWayBySellerDal.SelectModelByTargetId(TargetId); } } }