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 OA_CarDictionaryBLL { IOA_CarDictionaryDAL idal_IOA_CarDictionaryDAL = null; public OA_CarDictionaryBLL() { idal_IOA_CarDictionaryDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_CarDictionaryDAL) as IOA_CarDictionaryDAL; } /// /// 添加 /// /// /// public bool InsertModel(Model.OA_CarDictionary model) { return idal_IOA_CarDictionaryDAL.InserModel(model); } /// /// 更新 /// /// /// public bool UpdateModel(Model.OA_CarDictionary model) { return idal_IOA_CarDictionaryDAL.UpdateModel(model); } /// /// 删除 /// /// /// public bool DeleteModel(Model.OA_CarDictionary model) { return idal_IOA_CarDictionaryDAL.DeleteModel(model); } /// /// 根据编号获得信息 /// /// 编号 /// public OA_CarDictionary GetModelByKeyid(int? Keyid) { return idal_IOA_CarDictionaryDAL.GetModelByKeyid(Keyid); } /// /// 分页查询 /// /// /// /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid MemberId, string ParType, string ParName) { return idal_IOA_CarDictionaryDAL.SelectModelPage(pagination, MemberId, ParType, ParName); } /// /// 根据会员编号和类型获取列表 /// /// /// /// public IEnumerable SelectListByMemberIdAndParType(Guid MemberId, string ParType) { return idal_IOA_CarDictionaryDAL.SelectListByMemberIdAndParType(MemberId, ParType); } /// /// 批量删除 /// /// /// /// public bool DelAllModel(string keyids, Guid Memberid) { return idal_IOA_CarDictionaryDAL.DelAllModel(keyids, Memberid); } } }