!
This commit is contained in:
@@ -54,7 +54,7 @@ internal class ClsDobbsEmail_T1439 : IDisposable
|
|||||||
{
|
{
|
||||||
bool? ReportDueNow = false;
|
bool? ReportDueNow = false;
|
||||||
|
|
||||||
ReportDueNow = cn.ExecuteScalar<bool>("Select Top 1 [NeedToSend] From [crpt].[Dobbs_EmailContestCalendar] Where [SendReport]=@Today", new { Today = DateTime.Today });
|
ReportDueNow = DebugMode || cn.ExecuteScalar<bool>("Select Top 1 [NeedToSend] From [crpt].[Dobbs_EmailContestCalendar] Where [SendReport]=@Today", new { Today = DateTime.Today });
|
||||||
if (ReportDueNow.HasValue && ReportDueNow.Value)
|
if (ReportDueNow.HasValue && ReportDueNow.Value)
|
||||||
{
|
{
|
||||||
cn.Open();
|
cn.Open();
|
||||||
|
|||||||
+1
-2
@@ -24,10 +24,9 @@ internal class Program
|
|||||||
|
|
||||||
if (Debugger.IsAttached)
|
if (Debugger.IsAttached)
|
||||||
{
|
{
|
||||||
using (var obj = new ClsDobbsEmail_T1439() { DebugMode = false })
|
using (var obj = new ClsDobbsEmail_T1439() { DebugMode = true })
|
||||||
{
|
{
|
||||||
obj.Go();
|
obj.Go();
|
||||||
obj.Go();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user