예제 #1
0
 public void AddCoverage(LocationCvg locCvg)
 {
     if (!this.m_vLocCvg.Contains(locCvg))
     {
         this.m_vLocCvg.Add(locCvg);
     }
 }
예제 #2
0
        public List <int> GetUniqueLocationExtnId()
        {
            List <int> vLocExtnId = new List <int>();

            if (this.m_sched != null)
            {
                foreach (RiskItem riskItem in this.Schedule.SetSchedule)
                {
                    if (riskItem is LocationCvg)
                    {
                        //direct location coverages
                        LocationCvg locCvg = (LocationCvg)riskItem;
                        if (!vLocExtnId.Contains(locCvg.LocationExtnId))
                        {
                            //add the coverage's location external id
                            vLocExtnId.Add(locCvg.LocationExtnId);
                        }
                    }
                }
            }

            return(vLocExtnId);
        }