initProject
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLL.Email_Send
|
||||
{
|
||||
public static class Email_SendLogService
|
||||
{
|
||||
#region 邮件管理
|
||||
/// <summary>
|
||||
/// 邮件增加
|
||||
/// </summary>
|
||||
/// <param name="eProject"></param>
|
||||
public static void AddEmail_SendLog(Email_SendLog email_SendLog)
|
||||
{
|
||||
Email_SendLog newEmail_SendLog = new Email_SendLog();
|
||||
newEmail_SendLog.EmailId = Guid.NewGuid().ToString();
|
||||
newEmail_SendLog.EmailTile = email_SendLog.EmailTile;
|
||||
newEmail_SendLog.EmailContent = email_SendLog.EmailContent;
|
||||
newEmail_SendLog.EmailURL = email_SendLog.EmailURL;
|
||||
newEmail_SendLog.EmailName = email_SendLog.EmailName;
|
||||
newEmail_SendLog.EmailStatus = email_SendLog.EmailStatus;
|
||||
newEmail_SendLog.CreateTime = email_SendLog.CreateTime;
|
||||
newEmail_SendLog.CreateName = email_SendLog.CreateName;
|
||||
|
||||
Funs.DB.Email_SendLog.InsertOnSubmit(newEmail_SendLog);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 获取列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Email_SendLog> GetEmail_SendLogList()
|
||||
{
|
||||
return (from x in Funs.DB.Email_SendLog orderby x.CreateTime descending select x).ToList();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 根据主键查询信息
|
||||
/// <summary>
|
||||
/// 根据主键查询信息
|
||||
/// </summary>
|
||||
/// <param name="EmailID">主键</param>
|
||||
/// <returns>对象</returns>
|
||||
public static Email_SendLog GetEmail_SendLog(string EmailID)
|
||||
{
|
||||
return Funs.DB.Email_SendLog.FirstOrDefault(x => x.EmailId == EmailID);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user