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_PaymentRecordBLL
{
IEC_PaymentRecordDAL _IEC_PaymentRecordDal;
///
/// 初始化构造
///
public EC_PaymentRecordBLL()
{
_IEC_PaymentRecordDal = Factory.GetDALByInterfaceName(DALInterface.IEC_PaymentRecordDAL) as IEC_PaymentRecordDAL;
}
///
/// 新增
///
///
///
///
///
public bool AddModel(EC_PaymentRecord m_EC_PaymentRecord, EC_MemberBasic m_EC_MemberBasic, Sys_Permissions_UserRoleRelation m_Sys_Permissions_UserRoleRelation)
{
return _IEC_PaymentRecordDal.AddModel(m_EC_PaymentRecord, m_EC_MemberBasic, m_Sys_Permissions_UserRoleRelation);
}
///
/// 添加
///
///
///
public bool InsertModel(Model.EC_PaymentRecord model)
{
return _IEC_PaymentRecordDal.InserModel(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.EC_PaymentRecord model)
{
return _IEC_PaymentRecordDal.UpdateModel(model);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.EC_PaymentRecord model)
{
return _IEC_PaymentRecordDal.DeleteModel(model);
}
///
/// 分页查询
///
///
///
///
///
///
///
///
///
///
///
public IEnumerable SelectAllModelPage(Infrastructure.Query.Pagination pagination, DateTime? StartTime, DateTime? EndTime, string Name, string MemberType, string OrderType, string Province, string City, string Country)
{
return _IEC_PaymentRecordDal.SelectAllModelPage(pagination,StartTime, EndTime, Name, MemberType, OrderType,Province, City, Country);
}
///
/// 分页查询
///
///
///
///
///
///
///
///
public IEnumerable SelectAllModelPage(Infrastructure.Query.Pagination pagination, string StartTime, string EndTime, string OrderType, string selectProvince, string selectCity, string selectCounty)
{
return _IEC_PaymentRecordDal.SelectAllModelPage(pagination, StartTime, EndTime, OrderType, selectProvince, selectCity, selectCounty);
}
///
/// 根据编号获得信息
///
/// 编号
///
public EC_PaymentRecord GetModelByKeyid(int? Keyid)
{
return _IEC_PaymentRecordDal.GetModelByKeyid(Keyid);
}
///
/// 获取新的订单编号
///
///
public string GetNewOrderId()
{
return _IEC_PaymentRecordDal.GetNewOrderId();
}
///
/// 更新已付费用,并且修改会员状态
///
///
///
public bool UpdateModel(Model.EC_PaymentRecord model, CY.Model.Pay.Pay_Request m_Pay_Request, EC_MemberBasic memberBasic)
{
return _IEC_PaymentRecordDal.UpdateModel(model, m_Pay_Request, memberBasic);
}
}
}