using System; using System.Collections.Generic; using System.Linq; using System.Text; using CY.IDAL; using CY.Model; using AbstractFactory; using CY.IBaseDAL; using CY.Infrastructure.DESEncrypt; using CY.Infrastructure.Query; namespace CY.BLL { public class EC_ExchangeRecordBLL { IEC_ExchangeRecordDAL idal_IEC_ExchangeRecordDAL = null; public EC_ExchangeRecordBLL() { idal_IEC_ExchangeRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_ExchangeRecordDAL) as IEC_ExchangeRecordDAL; } /// /// 添加 /// /// /// public bool InsertModel(Model.EC_ExchangeRecord model) { return idal_IEC_ExchangeRecordDAL.InserModel(model); } /// /// 更新 /// /// /// public bool UpdateModel(Model.EC_ExchangeRecord model) { return idal_IEC_ExchangeRecordDAL.UpdateModel(model); } /// /// 删除 /// /// /// public bool DeleteModel(Model.EC_ExchangeRecord model) { return idal_IEC_ExchangeRecordDAL.DeleteModel(model); } /// /// 根据编号获得信息 /// /// 编号 /// public EC_ExchangeRecord GetModelByKeyid(int? Keyid) { return idal_IEC_ExchangeRecordDAL.GetModelByKeyid(Keyid); } /// /// 分页查询 /// /// /// /// /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid MemberId, string MemberName, string PrizeName, int? Status) { return idal_IEC_ExchangeRecordDAL.SelectModelPage(pagination, MemberId, MemberName, PrizeName, Status); } /// /// 新增 /// /// /// /// /// /// public bool InserModel(EC_ExchangeRecord m_EC_ExchangeRecord, EC_PrizeInfo m_EC_PrizeInfo, Pay_PaymentAccount m_Pay_PaymentAccount, Pay_ScoreRecord m_Pay_ScoreRecord) { return idal_IEC_ExchangeRecordDAL.InserModel(m_EC_ExchangeRecord, m_EC_PrizeInfo, m_Pay_PaymentAccount, m_Pay_ScoreRecord); } } }