This commit is contained in:
毕文静 2025-10-11 09:37:04 +08:00
parent aea0bf3079
commit 278b09799d
1 changed files with 13 additions and 9 deletions

View File

@ -66,9 +66,9 @@
aTimer.Interval = 1000 * 60 * 30;
aTimer.Enabled = true;
aTimer.Start();
}
// 过期提示
//var foList = from x in Funs.DB.FC_SESRelatedData
// where x.Expire_Date != null
@ -91,7 +91,7 @@
{
System.Timers.Timer aTimer = new System.Timers.Timer();
aTimer.Elapsed += new System.Timers.ElapsedEventHandler(aTimer_FC_AutoSend);
//4小时执行一次
//1小时执行一次
aTimer.Interval = 1000 * 60 * 60;
aTimer.Enabled = true;
aTimer.Start();
@ -102,7 +102,7 @@
{
System.Timers.Timer fcTimer = new System.Timers.Timer();
fcTimer.Elapsed += new System.Timers.ElapsedEventHandler(FC_AutoStatus);
//120分钟执行一次
//60分钟执行一次
fcTimer.Interval = 1000 * 60 * 60;
fcTimer.Enabled = true;
fcTimer.Start();
@ -1771,12 +1771,16 @@
{
foreach (var pun in punishments)
{
//新增用户部门操作流程
Model.EMC_PunishmentAudit newAudit = new EMC_PunishmentAudit();
newAudit.AuditId = SQLHelper.GetNewID(typeof(Model.EMC_PunishmentAudit));
newAudit.PunishmentId = pun.PunishmentId;
newAudit.AuditMan = pun.UserDep;
BLL.PunishmentAuditService.AddPunishmentAudit(newAudit);
var audit = BLL.PunishmentAuditService.GetAuditByAuditMan(pun.PunishmentId, pun.UserDep);
if (audit == null)
{
//新增用户部门操作流程
Model.EMC_PunishmentAudit newAudit = new EMC_PunishmentAudit();
newAudit.AuditId = SQLHelper.GetNewID(typeof(Model.EMC_PunishmentAudit));
newAudit.PunishmentId = pun.PunishmentId;
newAudit.AuditMan = pun.UserDep;
BLL.PunishmentAuditService.AddPunishmentAudit(newAudit);
}
List<Model.Sys_User> userList = new List<Sys_User>();
EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId);