using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BLL.Email_Send { public static class Email_ToPeopleService { #region 根据EmtempID查询Em_toPeople /// /// 获取抄送人信息 /// /// 邮件主键 /// public static List GetCCTopeopleList(string EmtempID) { return (from x in Funs.DB.Email_ToPeople select x).Where(o => o.EmtempID == EmtempID && o.EMPeopleType == Const.CCType).ToList(); } /// /// 获取发送人信息 /// /// 邮件主键 /// public static List GetSenderTopeopleList(string EmtempID) { return (from x in Funs.DB.Email_ToPeople select x).Where(o => o.EmtempID == EmtempID && o.EMPeopleType == Const.SenderType).ToList(); } #endregion } }