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 Pay_BankInfoBLL { IPay_BankInfoDAL _IPay_BankInfoDal = null; /// /// 初始化构造 /// public Pay_BankInfoBLL() { //获取Pay_BankInfo DAL实现 _IPay_BankInfoDal = Factory.GetDALByInterfaceName(DALInterface.IPay_BankInfoDAL) as IPay_BankInfoDAL; } /// /// 新增银行卡信息 /// /// /// public bool InsertModel(CY.Model.Pay_BankInfo m_Pay_BankInfo) { try { return _IPay_BankInfoDal.InserModel(m_Pay_BankInfo); } catch (Exception ex) { throw ex; } } /// /// 修改银行卡信息 /// /// /// public bool UpdateModel(CY.Model.Pay_BankInfo m_Pay_BankInfo) { try { return _IPay_BankInfoDal.UpdateModel(m_Pay_BankInfo); } catch (Exception ex) { throw ex; } } /// /// 删除银行卡信息 /// /// /// public bool DeleteModel(CY.Model.Pay_BankInfo rType) { try { _IPay_BankInfoDal.DeleteModel(rType); } catch (Exception ex) { throw ex; } return true; } /// /// 根据会员ID查询银行卡信息列表 /// /// /// public List GetModelListByMemberId(Guid MemberId) { return _IPay_BankInfoDal.SelectAllModelByMemberId(MemberId); } /// /// 获取单个银行卡信息 /// /// 主键id /// public Pay_BankInfo GetModel(int? Keyid) { Pay_BankInfo result = null; try { result = _IPay_BankInfoDal.SelectModelByKeyid(Keyid) as Pay_BankInfo;//执行查询 } catch (Exception ex) { throw ex; } return result;//返回结果 } } }