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.OA { public class OA_FirmAccountRecordBLL { IOA_FirmAccountRecordDAL firmAccountRecordDAL = null; public OA_FirmAccountRecordBLL() { firmAccountRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_FirmAccountRecordDAL) as IOA_FirmAccountRecordDAL; } /// /// 插入一条收入\支出记录 /// /// /// public bool InsertModel(OA_FirmAccountRecord model) { return firmAccountRecordDAL.InserModel(model); } /// /// 添加收入/支出记录 /// /// /// public bool AddModel(OA_FirmAccountRecord model, OA_FirmAccount m_OA_FirmAccount) { return firmAccountRecordDAL.AddModel(model, m_OA_FirmAccount); } /// /// 添加收入/支出记录,并更改会员状态 /// /// /// /// /// public bool AddModel(OA_FirmAccountRecord model, OA_FirmAccount m_OA_FirmAccount, EC_MemberBasic memberBasic, EC_PaymentRecord paymentRecord) { return firmAccountRecordDAL.AddModel(model, m_OA_FirmAccount, memberBasic, paymentRecord); } /// /// 分页查询 /// /// /// /// /// /// /// /// /// /// /// /// /// public IEnumerable SelectModelPage(Pagination pa, Guid FirmId, DateTime? RegTimeStart, DateTime? RegTimeEnd, string AccountName, string AcoountType, string Operator, string SubjectId, string RecordTypeId, string PaymentUnit, string OperationalMatters) { return firmAccountRecordDAL.SelectModelPage(pa, FirmId, RegTimeStart, RegTimeEnd, AccountName, AcoountType, Operator, SubjectId, RecordTypeId, PaymentUnit, OperationalMatters); } /// /// 金额统计 /// /// /// /// /// /// /// /// /// /// /// /// public Model.OA_FirmAccountRecord SumRecordMoney(Pagination pa, Guid FirmId, DateTime? RegTimeStart, DateTime? RegTimeEnd, string AccountName, string AcoountType, string Operator, string SubjectId, string RecordTypeId, string PaymentUnit) { return firmAccountRecordDAL.SumRecordMoney(pa, FirmId, RegTimeStart, RegTimeEnd, AccountName, AcoountType, Operator, SubjectId, RecordTypeId, PaymentUnit); } /// /// 获取单个账户 /// /// /// /// public Model.OA_FirmAccountRecord SelectSingleModel(string Keyid, Guid FirmId) { return firmAccountRecordDAL.SelectSingleModel(Keyid, FirmId); } /// /// 账户转账 /// /// /// /// /// /// public bool AccountOToO(OA_FirmAccount m_OA_FirmAccountIn, OA_FirmAccount m_OA_FirmAccountOut, OA_FirmAccountRecord m_OA_FirmAccountRecordIn, OA_FirmAccountRecord m_OA_FirmAccountRecordOut) { return firmAccountRecordDAL.AccountOToO(m_OA_FirmAccountIn, m_OA_FirmAccountOut, m_OA_FirmAccountRecordIn, m_OA_FirmAccountRecordOut); } /// /// 更具ID数据获取列表 /// /// /// /// public IEnumerable SelectModelListByKeyids(Guid FirmId, string keyids) { return firmAccountRecordDAL.SelectModelListByKeyids(FirmId,keyids); } } }