/// <summary>
 /// Gets the DiaryEvents and OOPEvents list from the DB. The next available action on a claim
 /// </summary>
 /// <param name="CustomerID">CustomerID</param>
 /// <param name="LeadID">LeadID</param>
 public void GetDiaryEvents(int CustomerID,int LeadID)
 {
     Events = DiaryEvent.EventsToDisplayToTheUser(CustomerID);
     Lead tempLead = new Lead();
     int LeadTypeID = tempLead.GetLeadTypeID(LeadID);
     OOPEvents = DiaryEvent.GetOOPEvents(LeadTypeID);
 }
 /// <summary>
 /// GetLeadTypeID from Lead Class by LeadID
 /// </summary>
 /// <param name="LeadID">LeadID</param>
 /// <returns>LeadTypeID</returns>
 public int GetLeadTypeIDbyLeadID(int LeadID)
 {
     Leads = new Lead();
     return Leads.GetLeadTypeID(LeadID);
 }
        /// <summary>
        /// Get all pages for a lead type
        /// </summary>
        /// <param name="LeadID">LeadID</param>
        public void GetDiaryDetailFieldPages(int LeadID)
        {
            Lead Leads = new Lead();
            int LeadTypeID = Leads.GetLeadTypeID(LeadID);

            string ProcName = System.Configuration.ConfigurationManager.AppSettings["Get_DetailFieldPageIDsForLeadTypeID"].ToString();
            string[] ProcParm = new string []{ LeadTypeID.ToString(), LeadID.ToString() };

            IR_Dashboard_SDK.AquariumCustomProcessing.ReportResult result = new IR_Dashboard_SDK.AquariumCustomProcessing.ReportResult();

            AquariumCustomProcessing.SessionDetails sd = SDKHelper.GetSessionDetails<AquariumCustomProcessing.SessionDetails>("User");

            AquariumCustomProcessing.CustomProcessingSoapClient customsdk = new AquariumCustomProcessing.CustomProcessingSoapClient();

            result = customsdk.RunCustomProc(sd, ProcName, ProcParm);

            if (result.ResultInfo.ReturnCode == AquariumCustomProcessing.BasicCode.OK)
            {
                DiaryDetailFieldPageList = ToPageList(result.Data);
            }
            else if (result.ResultInfo.ReturnCode == AquariumCustomProcessing.BasicCode.Failed)
            {
                throw new System.ApplicationException("Error ID:" + result.ResultInfo.Errors[0].ResultCodeID + ", Description:" + result.ResultInfo.Errors[0].Description);
            }
        }
 /// <summary>
 /// Get All Leads from lead Class
 /// </summary>
 public void GetAllLeads()
 {
     Leads = new Lead();
     Leads.GetAllLeads();
 }