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; using CY.Infrastructure; namespace CY.BLL { /// /// 支付平台收支记录的业务逻辑类 /// public class Pay_IncExpRecordBLL { IPay_IncExpRecordDAL _IPay_IncExpRecordDal = null; IPay_PromotionRecordDAL _IPay_PromotionRecordDAL = null; IPay_ScoreRecordDAL _IPay_ScoreRecordDAL = null; /// /// 初始化构造 /// public Pay_IncExpRecordBLL() { //获取Pay_IncExpRecord DAL实现 _IPay_IncExpRecordDal = Factory.GetDALByInterfaceName(DALInterface.IPay_IncExpRecordDAL) as IPay_IncExpRecordDAL; _IPay_PromotionRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IPay_PromotionRecordDAL) as IPay_PromotionRecordDAL; _IPay_ScoreRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IPay_ScoreRecordDAL) as IPay_ScoreRecordDAL; } /// /// 新增支付平台收支记录 /// /// /// public bool InsertModel(CY.Model.Pay_IncExpRecord rType) { try { return _IPay_IncExpRecordDal.InserModel(rType); } catch (Exception ex) { throw ex; } } /// /// 修改支付平台收支记录 /// /// /// public bool UpdateModel(CY.Model.Pay_IncExpRecord rType) { try { return _IPay_IncExpRecordDal.UpdateModel(rType); } catch (Exception ex) { throw ex; } } /// /// 根据账户编号分页查询(type:支出-1收入1) /// /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, int? PayId, int? Type) { try { return _IPay_IncExpRecordDal.SelectModelPage(pagination,PayId,Type); } catch (Exception ex) { throw ex; } } /// /// 分页返回全部流水账 /// /// /// /// public IEnumerable SelectAllModel(Infrastructure.Query.Pagination pagination, int? PayId) { return _IPay_IncExpRecordDal.SelectAllModel(pagination, PayId); } /// /// 根据条件分页返回全部流水账 /// /// /// /// /// /// /// /// /// /// public IEnumerable SelectAllModelByPaging(Infrastructure.Query.Pagination pagination, int? payId, string startDate, string endDate, int tradingType, int balanceAccount, string memberType, string memberName, string province, string city, string county) { return _IPay_IncExpRecordDal.SelectAllModelByPaging(pagination, payId, startDate, endDate, tradingType, balanceAccount, memberType, memberName,province,city,county); } /// /// 获取已收佣金明细 /// /// /// /// /// /// /// /// /// public IEnumerable SelectAllModelByPaging(Infrastructure.Query.Pagination pagination, int? payId, string startDate, string endDate, string province, string city, string county) { return _IPay_IncExpRecordDal.SelectAllModelByPaging(pagination, payId, startDate, endDate, province, city, county); } /// /// 推广记录 /// /// /// /// /// /// /// /// /// /// public IEnumerable SelectAllModel(Infrastructure.Query.Pagination pagination, int? PayId, int? TradingType, int? TradingState, string IsProxy, DateTime? CreatStartTime, DateTime? CreatEndTime, string DataType) { return _IPay_PromotionRecordDAL.SelectAllModel(pagination, PayId, TradingType, TradingState, IsProxy, CreatStartTime, CreatEndTime, DataType); } public IEnumerable SelectAllModelByPromotionRecord(Infrastructure.Query.Pagination pagination, int TradingType, string startDate, string endDate, string province, string city, string country) { return _IPay_PromotionRecordDAL.SelectAllModel(pagination, TradingType, startDate, endDate, province, city, country); } /// /// 积分记录 /// /// /// /// /// /// /// /// public IEnumerable SelectAllModel(Infrastructure.Query.Pagination pagination, int? PayId, int? TradingType, int? TradingState, DateTime? CreatStartTime, DateTime? CreatEndTime) { return _IPay_ScoreRecordDAL.SelectAllModel(pagination, PayId, TradingType, TradingState, CreatStartTime, CreatEndTime); } public IEnumerable SelectAllModel(Infrastructure.Query.Pagination pagination, int TradingType, string startDate, string endDate, string province, string city, string country) { return _IPay_ScoreRecordDAL.SelectAllModel(pagination, TradingType, startDate, endDate, province, city, country); } /// /// 获取上个月的推广排名 /// /// /// /// public IEnumerable SelectAllModelByLastMonth(DateTime? CreatStartTime, DateTime? CreatEndTime) { return _IPay_PromotionRecordDAL.SelectAllModelByLastMonth(CreatStartTime,CreatEndTime); } /// /// 查询欠款明细 /// /// /// /// /// /// /// /// public IEnumerable selectAllOwedMoneyList(Infrastructure.Query.Pagination pagination, string startDate, string endDate, string province, string city, string county) { return _IPay_IncExpRecordDal.selectAllOwedMoneyList(pagination, startDate, endDate, province, city, county); } /// /// 查询时间段内会员授信情况 /// /// /// /// /// /// /// /// /// public IEnumerable SelectAllCreditByPaging(Infrastructure.Query.Pagination pagination, int currentPayId, string startDate, string endDate, string selectProvince, string selectCity, string selectCounty) { return _IPay_IncExpRecordDal.SelectAllCreditByPaging(pagination, currentPayId, startDate, endDate, selectProvince, selectCity, selectCounty); } /// /// 查询时间段内会员授信使用 /// /// /// /// /// /// /// /// /// public IEnumerable SelectUseCreditByPaging(Infrastructure.Query.Pagination pagination, int currentPayId, string startDate, string endDate, string selectProvince, string selectCity, string selectCounty) { return _IPay_IncExpRecordDal.SelectUseCreditByPaging(pagination, currentPayId, startDate, endDate, selectProvince, selectCity, selectCounty); } } }