33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
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
 | 
						|
       /// <summary>
 | 
						|
       /// 获取抄送人信息
 | 
						|
       /// </summary>
 | 
						|
       /// <param name="EmtempID">邮件主键</param>     
 | 
						|
       /// <returns></returns>
 | 
						|
        public static List<Model.Email_ToPeople> GetCCTopeopleList(string EmtempID)
 | 
						|
        {
 | 
						|
            return (from x in Funs.DB.Email_ToPeople select x).Where(o => o.EmtempID == EmtempID && o.EMPeopleType == Const.CCType).ToList();
 | 
						|
        }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 获取发送人信息
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="EmtempID">邮件主键</param>     
 | 
						|
        /// <returns></returns>
 | 
						|
        public static List<Model.Email_ToPeople> GetSenderTopeopleList(string EmtempID)
 | 
						|
        {
 | 
						|
            return (from x in Funs.DB.Email_ToPeople select x).Where(o => o.EmtempID == EmtempID && o.EMPeopleType == Const.SenderType).ToList();
 | 
						|
        }
 | 
						|
        #endregion
 | 
						|
    }
 | 
						|
}
 |