You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/JobSendAgentMail/MailSend.cs

66 lines
2.0 KiB
C#

8 months ago
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace JobSendAgentMail
{
[Table("Mail_Send")]
public class MailSend
{
public const string MailSendStatusCreate = "Create";
public const string MailSendStatusSending = "Sending";
public const string MailSendStatusSuccess = "Success";
public const string MailSendStatusFail = "Fail";
public MailSend()
{
this.GID = Guid.NewGuid().ToString().Replace("-", "");
SendStatus = MailSendStatusCreate;
CreateTime = DateTime.Now;
TryCount = 0;
}
[Key]
public string GID { get; set; }
public string SendTo { get; set; }
public string CCTo { get; set; }
public string Title { get; set; }
public string Body { get; set; }
public string SendStatus { get; set; }
public DateTime? SendTime { get; set; }
public int TryCount { get; set; }
public DateTime CreateTime { get; set; }
public string RelativeId { get; set; }
public string SmtpConfig { get; set; }
public string ShowName { get; set; }
public string Sender { get; set; }
}
[Table("op_mail_log")]
public class OpMailLog
{
public OpMailLog()
{
this.GID = Guid.NewGuid().ToString().Replace("-", "");
SENDTIME = DateTime.Now;
}
[Key]
public string GID { get; set; }
public string BSNO { get; set; }
public string BLTYPE { get; set; }
public string RECEIVER { get; set; }
public string CCTo { get; set; }
public string SUBJECT { get; set; }
public string DESCRIPTION { get; set; }
public string ATTACHMENT { get; set; }
public DateTime? SENDTIME { get; set; }
public string SENDUSER { get; set; }
}
}