Example #1
0
 ///<summary></summary>
 public static void Update(WebSchedRecall webSchedRecall)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), webSchedRecall);
         return;
     }
     Crud.WebSchedRecallCrud.Update(webSchedRecall);
 }
Example #2
0
 ///<summary></summary>
 public static long Insert(WebSchedRecall webSchedRecall)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         webSchedRecall.WebSchedRecallNum = Meth.GetLong(MethodBase.GetCurrentMethod(), webSchedRecall);
         return(webSchedRecall.WebSchedRecallNum);
     }
     return(Crud.WebSchedRecallCrud.Insert(webSchedRecall));
 }
Example #3
0
 ///<summary>Sets EmailSendStatus to SendFailed if isForEmail is true. Sets SmsSendStatus to SendFailed if IsForSms is true.</summary>
 public static void MarkSendFailed(WebSchedRecall webSchedRecall, DateTime dateSendFailed)
 {
     //No need to check RemotingRole; no call to db.
     webSchedRecall.DateTimeSendFailed = dateSendFailed;
     if (webSchedRecall.IsForEmail)
     {
         webSchedRecall.EmailSendStatus = AutoCommStatus.SendFailed;
     }
     else if (webSchedRecall.IsForSms)
     {
         webSchedRecall.SmsSendStatus = AutoCommStatus.SendFailed;
     }
     WebSchedRecalls.Update(webSchedRecall);
 }
Example #4
0
 ///<summary>Updates DateTimeReminderSent and makes EmailSendStatus to SendSuccessful if IsForEmail is true and SmsSendStatus if IsForSms is
 ///true.</summary>
 public static void MarkReminderSent(WebSchedRecall webSchedRecall, DateTime dateTimeReminderSent)
 {
     //No need to check RemotingRole; no call to db.
     webSchedRecall.DateTimeReminderSent = dateTimeReminderSent;
     if (webSchedRecall.IsForEmail)
     {
         webSchedRecall.EmailSendStatus = AutoCommStatus.SendSuccessful;
     }
     else if (webSchedRecall.IsForSms)
     {
         webSchedRecall.SmsSendStatus = AutoCommStatus.SendSuccessful;
     }
     WebSchedRecalls.Update(webSchedRecall);
 }