using Learun.Util; using System; using System.Collections.Generic; namespace Learun.Application.OA.Email.EmailSend { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2017 /// 创建人:陈彬彬 /// 日 期:2018.06.04 /// 描 述:邮件发送管理 /// public class EmailSendBLL : EmailSendIBLL { private EmailSendService emailSendService = new EmailSendService(); #region 获取数据 /// /// 获取发送邮件数据 /// /// 分页参数 /// 关键词 /// public IEnumerable GetSendList(Pagination pagination, string queryJson) { try { return emailSendService.GetSendList(pagination, queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取邮件发送实体 /// /// 主键 /// public EmailSendEntity GetSendEntity(string keyValue) { try { return emailSendService.GetSendEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 提交数据 /// /// 删除 /// /// 主键 public void DeleteEntity(string keyValue) { try { emailSendService.DeleteEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 保存(新增、修改) /// /// 主键值 /// 邮件发送实体 /// public void SaveSendEntity(string keyValue, EmailSendEntity sendEntity) { try { emailSendService.SaveSendEntity(keyValue, sendEntity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion } }