diff --git a/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs b/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs index 2c56a79..0fe346e 100644 --- a/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs +++ b/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs @@ -791,7 +791,7 @@ namespace FineUIPro.Web.Evaluation fsModel.Timely = homelyModel.Timely; } } - else if (fotype.Trim() == "TAR") + else if (fotype.Trim().Contains("TAR")) { if (tar_homelyModel != null && tar_homelyModel.Timely != null) { @@ -915,7 +915,7 @@ namespace FineUIPro.Web.Evaluation fsModel.Timely = homelyModel.Timely; } } - else if (fotype.Trim() == "TAR") + else if (fotype.Trim().Contains("TAR")) { if (tar_homelyModel != null && tar_homelyModel.Timely != null) { @@ -1305,7 +1305,7 @@ namespace FineUIPro.Web.Evaluation fsModel.Timely = homelyModel.Timely; } } - else if (fotype.Trim() == "TAR") + else if (fotype.Trim().Contains("TAR")) { if (tar_homelyModel != null && tar_homelyModel.Timely != null) { @@ -1389,7 +1389,7 @@ namespace FineUIPro.Web.Evaluation fsModel.Timely = homelyModel.Timely; } } - else if (fotype.Trim() == "TAR") + else if (fotype.Trim().Contains("TAR")) { if (tar_homelyModel != null && tar_homelyModel.Timely != null) { diff --git a/FCL/FineUIPro.Web/Global.asax.cs b/FCL/FineUIPro.Web/Global.asax.cs index 4f27433..f50e4d3 100644 --- a/FCL/FineUIPro.Web/Global.asax.cs +++ b/FCL/FineUIPro.Web/Global.asax.cs @@ -46,17 +46,17 @@ AppDomain.Unload(AppDomain.CurrentDomain); } - //每月(2,5,8,10)邮件自动发送给SSR提交人员和主协调人及合同员,用户代表等评价 - if ((DateTime.Now.Day == 2 || DateTime.Now.Day == 5 || DateTime.Now.Day == 8 || DateTime.Now.Day == 10) && DateTime.Now.Hour == 8) + if ((DateTime.Now.Day == 2 || DateTime.Now.Day == 5 || DateTime.Now.Day == 8 || DateTime.Now.Day == 10) && DateTime.Now.Hour == 9) { System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new System.Timers.ElapsedEventHandler(aTimer_Elapsed); - //30分钟执行一次 - aTimer.Interval = 1000 * 60 * 30; + //60分钟执行一次 + aTimer.Interval = 1000 * 60 * 60; aTimer.Enabled = true; aTimer.Start(); } + //自动填写评价 if (DateTime.Now.Day == 12) {