//Ganesh on 30nov09
 //This method will insert a new job in AutomationJob table.
 public void insertAutomationJob(AutomationMaster objAutomationMaster, string ScheduledTime, string sendType, Int64 campaignMasterID)
 {
     AutomationJob objAutomationJob = new AutomationJob(ConnectionString);
     objAutomationJob.CampaignMasterID = campaignMasterID;
     objAutomationJob.CreatedDatetime = DateTime.Now;
     objAutomationJob.ScheduledDatetime = Convert.ToDateTime(ScheduledTime);
     objAutomationJob.AutomationScheduledDate = Convert.ToDateTime(ScheduledTime);
     objAutomationJob.SendType = sendType;
     objAutomationJob.Status = 1;
     objAutomationJob.Insert();
 }