Exemplo n.º 1
0
        ///<summary>Gets a list of all active recall types.  Those without triggers are excluded.  Perio and Prophy are both included.  One of them should later be removed from the collection.</summary>
        public static List <RecallType> GetActive()
        {
            //No need to check RemotingRole; no call to db.
            List <RecallType>    retVal = new List <RecallType>();
            List <RecallTrigger> triggers;

            for (int i = 0; i < RecallTypeC.Listt.Count; i++)
            {
                triggers = RecallTriggers.GetForType(RecallTypeC.Listt[i].RecallTypeNum);
                if (triggers.Count > 0)
                {
                    retVal.Add(RecallTypeC.Listt[i].Copy());
                }
            }
            return(retVal);
        }
Exemplo n.º 2
0
 ///<summary>Also makes sure both types are defined as special types.</summary>
 public static bool PerioAndProphyBothHaveTriggers()
 {
     //No need to check RemotingRole; no call to db.
     if (RecallTypes.PerioType == 0 || RecallTypes.ProphyType == 0)
     {
         return(false);
     }
     if (RecallTriggers.GetForType(RecallTypes.PerioType).Count == 0)
     {
         return(false);
     }
     if (RecallTriggers.GetForType(RecallTypes.ProphyType).Count == 0)
     {
         return(false);
     }
     return(true);
 }