11
This commit is contained in:
@@ -690,8 +690,8 @@
|
||||
{
|
||||
// 过期提示,30天范围
|
||||
var foList = from x in Funs.DB.FC_SESRelatedData where x.Expire_Date != null
|
||||
&& x.Expire_Date.Value.AddMonths(-6).Date <= DateTime.Now.Date
|
||||
&& x.Expire_Date.Value.AddMonths(-5).Date >= DateTime.Now.Date
|
||||
&& x.Expire_Date.Value.AddMonths(-6).AddDays(-7).Date <= DateTime.Now.Date
|
||||
&& x.Expire_Date.Value.AddMonths(-5).AddDays(-7).Date >= DateTime.Now.Date
|
||||
select x;
|
||||
if (foList.Count() > 0)
|
||||
{
|
||||
@@ -833,8 +833,8 @@
|
||||
// 过期提示,30天范围
|
||||
var foList = from x in Funs.DB.FC_SESRelatedData
|
||||
where x.Expire_Date != null
|
||||
&& x.Expire_Date.Value.AddMonths(-6).Date <= DateTime.Now.Date
|
||||
&& x.Expire_Date.Value.AddMonths(-5).Date >= DateTime.Now.Date
|
||||
&& x.Expire_Date.Value.AddMonths(-6).AddDays(-7).Date <= DateTime.Now.Date
|
||||
&& x.Expire_Date.Value.AddMonths(-5).AddDays(-7).Date >= DateTime.Now.Date
|
||||
select x;
|
||||
if (foList.Count() > 0)
|
||||
{
|
||||
@@ -1469,6 +1469,9 @@
|
||||
NameValueCollection myPram = new NameValueCollection();
|
||||
myPram.Add("ContractNo", fo.FO_NO);
|
||||
myPram.Add("Contractor", contractor);
|
||||
myPram.Add("Date", ses.PunishDate != null ? ses.PunishDate.Value.ToString("yyyy-MM-dd") : "");
|
||||
myPram.Add("Time", ses.PunishDate != null ? ses.PunishDate.Value.ToString("HH:mm") : "");
|
||||
myPram.Add("Violation Description", ses.Description);
|
||||
bool result = MailHelper.SendPunishSesMail(pops, myPram, "承包商EHSS违规关联SES号的填写通知", mailTo, mailCC, out resultMessage);
|
||||
|
||||
if (result)
|
||||
|
||||
Reference in New Issue
Block a user